2010/2/1 Fujii Masao <masao.fu...@gmail.com>: > On Mon, Feb 1, 2010 at 5:31 PM, Heikki Linnakangas > <heikki.linnakan...@enterprisedb.com> wrote: >> Fujii Masao wrote: >>> In HEAD, psql using conninfo fails in connecting to the server as follows. >>> >>> $ bin/psql "host=localhost" >>> psql: FATAL: database "host=localhost" does not exist >>> >>> This is because the recently-introduced PQconnectStartParams() >>> doesn't handle correctly the dbname parameter containing '='. >> >> Hmm, I don't think that was ever really supposed to work, it was >> accidental that it did. I certainly didn't realize you could do that. >> The documented way to do that is: >> >> bin/psql --host=localhost > > Really? According to the document, psql using conninfo seems to > be supported. > > http://developer.postgresql.org/pgdocs/postgres/app-psql.html#R2-APP-PSQL-CONNECTING
Yes, that is definitely supposed to work. It was intentionally added in 8.3 and is very useful :-) -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs