From: | "Erik Rijkers" <er(at)xs4all(dot)nl> |
---|---|
To: | "Robert Haas" <robertmhaas(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: pg_restore ignores PGDATABASE |
Date: | 2012-02-19 06:18:56 |
Message-ID: | ccdc5f622952d885586a396fa133aa6d.squirrel@webmail.xs4all.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, February 19, 2012 06:27, Robert Haas wrote:
> On Sat, Feb 18, 2012 at 11:58 AM, Erik Rijkers <er(at)xs4all(dot)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".
That's right, and that seems contradictory with:
"This utility [pg_restore], like most other PostgreSQL utilities, also uses the environment
variables supported by libpq (see Section 31.13)."
as pg_restore does 'ignore' (for want of a better word) PGDATABASE.
But I think I can conclude from your reply that that behaviour is indeed intentional.
thanks,
Erik Rijkers
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2012-02-19 10:20:14 | Re: Initial 9.2 pgbench write results |
Previous Message | Robert Haas | 2012-02-19 05:27:59 | Re: pg_restore ignores PGDATABASE |