From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Harris <Richard_Harris@adp.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Pg_dump does not include database search path in backup file
Date: Fri, 13 Aug 2004 16:24:54 -0400
Message-ID: <26687.1092428694@sss.pgh.pa.us> (raw)
In-Reply-To: <D6EE939FB590D84CB70371C2CB8CA34C1AE7B9@nexus.plaza.ds.adp.com>
References: <D6EE939FB590D84CB70371C2CB8CA34C1AE7B9@nexus.plaza.ds.adp.com>
"Richard Harris" <Richard_Harris@adp.com> writes:
> I'm using PostgreSQL 7.4.2. I have a database with several user defined
> schemas, e.g., public, shr, sys, acc, prt. I have altered the database
> search path to include all of the schema.
> ALTER DATABASE adp_test_db SET search_path to public, shr, sys, acc,
> prt, svc, fi;
> Then I used psql to restore the database from the backup file. However,
> psql restored the search path to the default (e.g., $user, public)
> rather than the search path with all the schemas.
pg_dump only dumps the contents of the database. Settings associated
with ALTER DATABASE or ALTER USER are considered to be the province
of pg_dumpall.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, Richard_Harris@adp.com
Subject: Re: Pg_dump does not include database search path in backup file
In-Reply-To: <26687.1092428694@sss.pgh.pa.us>
References: <D6EE939FB590D84CB70371C2CB8CA34C1AE7B9@nexus.plaza.ds.adp.com> <26687.1092428694@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox