Clarification needed

Started by PG Bug reporting formalmost 5 years ago3 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/libpq-pgpass.html
Description:

Web page https://www.postgresql.org/docs/13/libpq-pgpass.html

Are the fields in the .pgpass file case sensitive by default? Obviously the
password is, & it appears that at least the username is.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: Clarification needed

PG Doc comments form <noreply@postgresql.org> writes:

Are the fields in the .pgpass file case sensitive by default?

Yes. User name and database name clearly must preserve case
distinctions. Maybe there is an argument for the host name
to be matched case-insensitively, but I think it could cause
problems when the host string is a socket path name.

regards, tom lane

#3Dean Gibson (DB Administrator)
postgresql@mailpen.com
In reply to: Tom Lane (#2)
Re: Clarification needed

On 2021-06-12 12:47, Tom Lane wrote:

PG Doc comments form <noreply@postgresql.org> writes:

Are the fields in the .pgpass file case sensitive by default?

Yes. User name and database name clearly must preserve case
distinctions. Maybe there is an argument for the host name
to be matched case-insensitively, but I think it could cause
problems when the host string is a socket path name.

regards, tom lane

No argument from me;  I like it the way it is.  I just posted the
comment as a potential update to the web page.  Unless it is covered
elsewhere.