Re: database ownership and dumps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nicolas Kowalski <Nicolas(dot)Kowalski(at)imag(dot)fr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: database ownership and dumps
Date: 2002-07-25 18:22:12
Message-ID: 19929.1027621332@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Nicolas Kowalski <Nicolas(dot)Kowalski(at)imag(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Ruprecht 2002-07-25 20:55:28 Re: OS File Size > 1GB
Previous Message Tom Lane 2002-07-25 17:31:49 Re: OS File Size > 1GB