Re: LibPQ doesn't say host=* translates to localhost - Mailing list pgsql-bugs

From Francisco Olarte
Subject Re: LibPQ doesn't say host=* translates to localhost
Date
Msg-id CA+bJJbzN4HTGKGM2ipe8c22f_3QkT1=s3KRfk1preSf+q=Z3_A@mail.gmail.com
Whole thread Raw
In response to LibPQ doesn't say host=* translates to localhost  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: LibPQ doesn't say host=* translates to localhost
List pgsql-bugs
On Thu, 27 Jun 2024 at 21:57, David G. Johnston
<david.g.johnston@gmail.com> wrote:
> The documentation [0] doesn't say this should work and general networking knowledge leads me to believe it wouldn't
[1].
>
> PGHOST='*' psql postgres
> psql (17beta1)
> SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off, ALPN: postgresql)
> Type "help" for help.
>
> postgres=# \conninfo
> You are connected to database "postgres" as user "davidj" on host "*" (address "127.0.0.1") at port "5432".
> SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off, ALPN: postgresql)
>
> David J.
>
> [0] https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS
>
> [1]
> ping *
> ping: src: Temporary failure in name resolution

Bad quoting, PGHOST=¡*', single quoted, but ping *, unquouted, with an
error message which hints at <<echo ping *>> giving back <<ping src
....>>

Bug may be real, but ping '*' could give some better data for debugging.

Francisco Olarte.



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18525: Boolean aggregate functions like EVERY/BOOL_AND should shortcut
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #18500: Detaching a partition with an index manually attached to the parent's index triggers Assert