Re: pg_restore ignores PGDATABASE

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Erik Rijkers <er@xs4all.nl>
Cc: pgsql-hackers@postgresql.org
Date: 2012-02-19T05:27:59Z
Lists: pgsql-hackers
On Sat, Feb 18, 2012 at 11:58 AM, Erik Rijkers <er@xs4all.nl> wrote:
> pg_restore ignores environment variable PGDATABASE.

What exactly do you mean by "ignores"?  pg_restore prints results to
standard output unless a database name is specified.  AFAIK, there's
no syntax to say "I want a direct-to-database restore to whatever you
think the default database is".

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company