From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Interesting behavior change of psql |
Date: | 2014-07-08 02:13:07 |
Message-ID: | 20140708.111307.408695214582895632.t-ishii@sraoss.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
From 9.4 psql has slightly changed it's behavior.
Pre 9.4:
psql --version
psql (PostgreSQL) 9.3.4
psql -U '' test
FATAL: no PostgreSQL user name specified in startup packet
psql: FATAL: no PostgreSQL user name specified in startup packet
9.4:
psql -U '' test
psql (9.4beta1, server 9.3.4)
Type "help" for help.
test=#
Please note that this behavior change was actually brought by libpq:
Have libpq's PQconnectdbParams() and PQpingParams() functions
process zero-length strings as defaults (Adrian
Vondendriesch)
Previously, these functions treated zero-length string values
as defaults only in some cases.
It's not very clear that username is affected by this change here. I
just want to remind hackers before you get inquries on this from
PostgreSQL users.
Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2014-07-08 02:29:27 | Re: things I learned from working on memory allocation |
Previous Message | Robert Haas | 2014-07-08 02:04:55 | Re: things I learned from working on memory allocation |