Interesting behavior change of psql - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Interesting behavior change of psql
Date
Msg-id 20140708.111307.408695214582895632.t-ishii@sraoss.co.jp
Whole thread Raw
List 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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: things I learned from working on memory allocation
Next
From: Peter Geoghegan
Date:
Subject: Re: things I learned from working on memory allocation