From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nicolas Kowalski <Nicolas.Kowalski@imag.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: database ownership and dumps
Date: Thu, 25 Jul 2002 14:22:12 -0400
Message-ID: <19929.1027621332@sss.pgh.pa.us> (raw)
In-Reply-To: <vqo65z3oh2z.fsf@imag.fr>
References: <vqo65z3oh2z.fsf@imag.fr>
Nicolas Kowalski <Nicolas.Kowalski@imag.fr> writes:
> CREATE DATABASE "sthomas" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII';
> UPDATE pg_database SET datdba = <usesysid-for-sthomas>
> WHERE datname = 'sthomas' ;
This requires that you run the script as a superuser with catupd
enabled. Pretty ugly.
> Am I wrong ? Couldn't this be the "standard" pg_dump(|all) behaviour ?
There is a better solution in development sources.
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, Nicolas.Kowalski@imag.fr
Subject: Re: database ownership and dumps
In-Reply-To: <19929.1027621332@sss.pgh.pa.us>
References: <vqo65z3oh2z.fsf@imag.fr> <19929.1027621332@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