pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15429: psql requires '-h localhost' to run basic commands
3+ messages / 3 participants
[nested] [flat]

* BUG #15429: psql requires '-h localhost' to run basic commands
@ 2018-10-12 17:58  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2018-10-12 17:58 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: murphy6239@gmail.com

The following bug has been logged on the website:

Bug reference:      15429
Logged by:          Ryan Murphy
Email address:      murphy6239@gmail.com
PostgreSQL version: 10.5
Operating system:   Ubuntu 14.04.5 LTS
Description:        

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.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15429: psql requires '-h localhost' to run basic commands
@ 2018-10-12 18:02  Christoph Berg <myon@debian.org>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Christoph Berg @ 2018-10-12 18:02 UTC (permalink / raw)
  To: murphy6239@gmail.com; pgsql-bugs@lists.postgresql.org

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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #15429: psql requires '-h localhost' to run basic commands
@ 2018-10-14 05:03  Ryan Murphy <murphy6239@gmail.com>
  parent: Christoph Berg <myon@debian.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Ryan Murphy @ 2018-10-14 05:03 UTC (permalink / raw)
  To: myon@debian.org; +Cc: pgsql-bugs@lists.postgresql.org

Sorry about that, I'll resubmit this in postgresql-common. Thanks!

On Fri, Oct 12, 2018 at 2:02 PM Christoph Berg <myon@debian.org> wrote:

> 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
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-10-14 05:03 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-12 17:58 BUG #15429: psql requires '-h localhost' to run basic commands PG Bug reporting form <noreply@postgresql.org>
2018-10-12 18:02 ` Christoph Berg <myon@debian.org>
2018-10-14 05:03   ` Ryan Murphy <murphy6239@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox