-O not working

From: Marc Fromm <Marc(dot)Fromm(at)wwu(dot)edu>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: -O not working
Date: 2008-07-24 17:20:56
Message-ID: B0D7C0A3F35FE144A70312D086CBCA9B0CF2B321@ExchMailbox2.univ.dir.wwu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I backed up all my databases using:
pg_dumpall -O -c -U postgres > /tmp/pgalldb2
-O to remove owners on all objects
-c to drop databases before recreating them during the restore to prevent duplicate records

I restored all the databases with this command
psql -U postgres -f /tmp/pgalldb2 postgres

I tried to drop a user but was denied with the message, ". . . some objects depend on it."

Why isn't the -O flag not removing the owner from all objects?

Thanks

Marc

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Greg Sabino Mullane 2008-07-24 17:54:31 Re: [ADMIN] shared_buffers and shmmax
Previous Message Chris Bovitz 2008-07-24 15:00:00 Upgrade clients when (major) upgrading server?