pg_restore ignores PGDATABASE

From: "Erik Rijkers" <er(at)xs4all(dot)nl>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_restore ignores PGDATABASE
Date: 2012-02-18 16:58:19
Message-ID: 71e857315a4f4cdeb903820c1b34a572.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-02-18 17:15:14 Re: Notes about fixing regexes and UTF-8 (yet again)
Previous Message Greg Sabino Mullane 2012-02-18 16:51:22 Re: MySQL search query is not executing in Postgres DB