Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB1lZ-0004bc-VD for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Oct 2018 18:02:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gB1lW-0008Ul-E9 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Oct 2018 18:02:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB1lW-0008UY-4j for pgsql-bugs@lists.postgresql.org; Fri, 12 Oct 2018 18:02:22 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB1lS-0000kC-Oh for pgsql-bugs@lists.postgresql.org; Fri, 12 Oct 2018 18:02:20 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1470:e5c0:76e5:bff:fef3:7e00]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 42Wwf045fSz3Dwx; Fri, 12 Oct 2018 20:02:16 +0200 (CEST) Date: Fri, 12 Oct 2018 20:02:16 +0200 From: Christoph Berg To: murphy6239@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15429: psql requires '-h localhost' to run basic commands Message-ID: <20181012180215.GB25709@msg.df7cb.de> References: <15429-288b7c42f9d8be13@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15429-288b7c42f9d8be13@postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: PG Bug reporting form 2018-10-12 <15429-288b7c42f9d8be13@postgresql.org> > We've encountered an issue where psql requires "-h localhost" to run any > commands on PostgreSQL 10.5 machine. > > $ psql --version > Error: Invalid data directory for cluster 10 main > $ psql -h localhost --version > psql (PostgreSQL) 10.5 (Ubuntu 10.5-1.pgdg14.04+1) > > The issue is resolved by adding world-read access to postgresql.conf to > allow psql to read "data_directory", but this is something we've never had > to do with previous postgres versions. Hi, this is not a PostgreSQL problem, but in postgresql-common, which is specific to Debian and Ubuntu. We should probably demote that message to a warning. Christoph