Escaping ":" in .pgpass - code or docs bug?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Escaping ":" in .pgpass - code or docs bug?
Дата
Msg-id 4EEB5BCD.2070007@archonet.com
обсуждение исходный текст
Ответы Re: Escaping ":" in .pgpass - code or docs bug?  (Ross Reedstrom <reedstrm@rice.edu>)
Список pgsql-hackers
According to the docs [1], you should escape embedded colons in .pgpass 
(fair enough). Below is PG 9.1.1

user = "te:st", db = "te:st", password = "te:st"
    $ cat ~/.pgpass    *:*:te:st:te:st:te:st    $ psql91 -U "te:st" -d "te:st"    te:st=>
    $ cat ~/.pgpass    *:*:te\:st:te\:st:te:st    $ psql91 -U "te:st" -d "te:st"    te:st=>
    $ cat ~/.pgpass    *:*:te\:st:te\:st:te\:st    $ psql91 -U "te:st" -d "te:st"    psql: FATAL:  password
authenticationfailed for user "te:st"    password retrieved from file "/home/richardh/.pgpass"
 

I'm a bit puzzled how it manages without the escaping in the first case. 
There's a lack of consistency though that either needs documenting or 
fixing.


[1] http://www.postgresql.org/docs/9.1/static/libpq-pgpass.html

--   Richard Huxton  Archonet Ltd


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Patch to allow users to kill their own queries
Следующее
От: Simon Riggs
Дата:
Сообщение: archive_keepalive_command