Re: pg_dump file question - Mailing list pgsql-hackers

From Neil Conway
Subject Re: pg_dump file question
Date
Msg-id 878z18q3jt.fsf@mailbox.samurai.com
Whole thread Raw
In response to pg_dump file question  (Robert Partyka <bobson@ares.fils.us.edu.pl>)
List pgsql-hackers
Robert Partyka <bobson@ares.fils.us.edu.pl> writes:
> \connect template1
> .....
> CREATE USER "foo" WITH SYSID 32 PASSWORD 'bar' NOCREATEDB NOCREATEUSER;
> .....
> \connect template1 "foo"
> CREATE DATABASE "foodb" WITH TEMPLATE = template0 ENCODING = 'LATIN2';
> \connect "foodb" "foo"
> 
> I think evryone see why it dont work.

Yes -- it's a known problem with 7.2 that pg_dump can create
self-inconsistent dumps. In 7.3, this specific case has been fixed:
databases are now created using CREATE DATABASE ... WITH
OWNER. However, I'm not sure if there are other, similar problems that
haven't been fixed yet.

Cheers,

Neil

-- 
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC



pgsql-hackers by date:

Previous
From: Hans-Jürgen Schönig
Date:
Subject: Re: Table spaces again [was Re: Threaded Sorting]
Next
From: Tom Lane
Date:
Subject: Re: Where to call SetQuerySnapshot