From: | Fernando Schapachnik <fernando(at)mecon(dot)gov(dot)ar> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | btober(at)seaworthysys(dot)com, pgsql-general(at)postgresql(dot)org, Peter Eisentraut <peter_e(at)gmx(dot)net> |
Subject: | Re: pg_dump and alter database |
Date: | 2003-08-22 17:23:11 |
Message-ID: | 20030822172311.GF321@bal740r0.mecon.gov.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> <btober(at)seaworthysys(dot)com> writes:
> > I HAVE used pg_dumpall -g to make a backup of of users and groups, but
> > this output does not include the ALTER DATABASE commands.
Another related problem. pg_dump/pg_restore doesn't properly restore GRANT
CREATE ON DATABASE
pg_restore --create db.dump:
--Sample--
[...]
CREATE DATABASE db WITH TEMPLATE = template0 ENCODING = 8;
\connect db pgsql
\connect - dnsadm
--
-- TOC entry 4 (OID 20645)
-- Name: dns; Type: SCHEMA; Schema: -; Owner: dnsadm
-- Data Pos: 0
--
CREATE SCHEMA dns;
--End sample--
Output:
psql template1 -f /tmp/x
CREATE DATABASE
You are now connected to database db as user pgsql.
You are now connected as new user dnsadm.
psql:/tmp/x:13: ERROR: db: permission denied
Regards.
Fernando.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-08-22 17:25:39 | Re: pg_dump and alter database |
Previous Message | Jan Wieck | 2003-08-22 17:19:17 | Re: [HACKERS] Buglist |