BUG #1893: pg_dumpall - Search path order - Mailing list pgsql-bugs

From Daniel Naschenweng
Subject BUG #1893: pg_dumpall - Search path order
Date
Msg-id 20050919122340.E2A94F0B4B@svr2.postgresql.org
Whole thread Raw
Responses Re: BUG #1893: pg_dumpall - Search path order  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1893
Logged by:          Daniel Naschenweng
Email address:      daniel.blumenau@gmail.com
PostgreSQL version: 8.1 beta2
Operating system:   Windows
Description:        pg_dumpall - Search path order
Details:

When PostgreSQL make pg_dumpall, it set the search_path before a schema
create.
The import error:
NOTICE:  schema "usuario1" does not exist

--
-- PostgreSQL database cluster dump
--

\connect postgres

--
-- Roles
--

CREATE ROLE usuario1 WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB
LOGIN;
ALTER ROLE usuario1 SET search_path TO usuario1, public, pg_catalog;
CREATE ROLE usuario2 WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB
LOGIN;
ALTER ROLE usuario2 SET search_path TO usuario2, public, pg_catalog;
CREATE ROLE usuario3 WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB
LOGIN;
ALTER ROLE usuario3 SET search_path TO usuario3, public, pg_catalog;

(...)

--
-- Name: usuario1; Type: SCHEMA; Schema: -; Owner: usuario1
--

CREATE SCHEMA usuario1;

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #1889: little documentation error
Next
From: "Daniel Naschenweng"
Date:
Subject: BUG #1892: pg_dumpall get five passwords