Interesting behavior change of psql

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Interesting behavior change of psql
Дата
Msg-id 20140708.111307.408695214582895632.t-ishii@sraoss.co.jp
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: things I learned from working on memory allocation
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: things I learned from working on memory allocation