Restore roles with same oid

From: Jeff Amiel <jamiel(at)istreamimaging(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Restore roles with same oid
Date: 2010-06-08 14:59:35
Message-ID: C833C507.4B396%jamiel@istreamimaging.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

We currently use the 'usesysid' column from pg_shadow (which is really
pg_authid.oid I assume) for a trigger-based auditing mechanism.

We are about to do a dump from an 8.2 database into 8.4 and would like to
preserve the usesysid/oid when restoring.

No matter what options I throw ad pg_dumpall, it gives me 'create role'
commands...and obviously no preservation of the oids.

Any suggestions on how I can manage this?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2010-06-08 15:01:15 Re: Cognitive dissonance
Previous Message Peter Hunsberger 2010-06-08 14:23:13 Re: Cognitive dissonance