X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 993C05E46D4 for ; Fri, 13 Aug 2004 17:24:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75746-01 for ; Fri, 13 Aug 2004 20:24:57 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1D8855E46BF for ; Fri, 13 Aug 2004 17:24:53 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7DKOsDt026688; Fri, 13 Aug 2004 16:24:55 -0400 (EDT) To: "Richard Harris" Cc: pgsql-admin@postgresql.org Subject: Re: Pg_dump does not include database search path in backup file In-reply-to: References: Comments: In-reply-to "Richard Harris" message dated "Fri, 13 Aug 2004 10:02:05 -0700" Date: Fri, 13 Aug 2004 16:24:54 -0400 Message-ID: <26687.1092428694@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/111 X-Sequence-Number: 14506 "Richard Harris" 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