pg_restore ignores PGDATABASE

Поиск
Список
Период
Сортировка
От Erik Rijkers
Тема pg_restore ignores PGDATABASE
Дата
Msg-id 71e857315a4f4cdeb903820c1b34a572.squirrel@webmail.xs4all.nl
обсуждение исходный текст
Ответы Re: pg_restore ignores PGDATABASE  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
pg_restore ignores environment variable PGDATABASE.

Is this intentional?  (perhaps because of the risk of restoring into the wrong db?)

I would prefer if it would honor the PGDATABASE variable, but if it does ignore it intentionally,
the following (from 9.2devel docs) is obviously incorrect:

"This utility, like most other PostgreSQL utilities, also uses the environment variables supported
by libpq (see Section 31.13)."

I could look into fixing one (binary) or the other (docs), but what /is/ the preferred behavior?


thanks,


Erik Rijkers





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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: MySQL search query is not executing in Postgres DB
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Notes about fixing regexes and UTF-8 (yet again)