pg_restore ignores PGDATABASE - Mailing list pgsql-hackers

From Erik Rijkers
Subject pg_restore ignores PGDATABASE
Date
Msg-id 71e857315a4f4cdeb903820c1b34a572.squirrel@webmail.xs4all.nl
Whole thread Raw
Responses Re: pg_restore ignores PGDATABASE  (Robert Haas <robertmhaas@gmail.com>)
List 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 by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: MySQL search query is not executing in Postgres DB
Next
From: Tom Lane
Date:
Subject: Re: Notes about fixing regexes and UTF-8 (yet again)