| От | Tom Lane |
|---|---|
| Тема | Re: Connection without database name |
| Дата | |
| Msg-id | 28693.1103816152@sss.pgh.pa.us обсуждение |
| Ответ на | Connection without database name (Michael Meskes <meskes@postgresql.org>) |
| Список | pgsql-hackers |
Michael Meskes <meskes@postgresql.org> writes:
> Very early in its existance ecpg got an oracle compat hack that enabled
> it to do a connect with just the username and use the database as
> specified via PGDATABASE. It appears that this feature is not really
> used as it seems it segfault for quite some amount of releases.
> While trying ot fix it I found that the libpq function does not seem to
> look for the environment anymore.
Sure it does.
$ PGDATABASE=foo psql
psql: FATAL: database "foo" does not exist
$ PGDATABASE=template1 psql
Welcome to psql 8.0.0rc2, the PostgreSQL interactive terminal.
...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера