Re: Restore roles with same oid

From: Thom Brown <thombrown(at)gmail(dot)com>
To: Jeff Amiel <jamiel(at)istreamimaging(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Restore roles with same oid
Date: 2010-06-08 15:30:01
Message-ID: AANLkTiksybbRL5Z7fxn-oKdfXoDVm3jeM3_uS1qrPVlW@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8 June 2010 15:59, Jeff Amiel <jamiel(at)istreamimaging(dot)com> wrote:
> 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?
>

Can't you switch to using role names? I don't think oids are intended
to be used by anything other than PostgreSQL.

Thom

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Amiel 2010-06-08 15:33:19 Re: Restore roles with same oid
Previous Message Vick Khera 2010-06-08 15:08:45 Re: 3rd time is a charm.....right sibling is not next child crash.