From: Ben C <ben.c@ect.com.au>
To: pgsql-admin@postgresql.org
Subject: Restoring Backup With OIDs As Primary Key
Date: Tue, 26 Aug 2008 13:30:23 +1000
Message-ID: <7DA06115D1591D41A33328B737C1F4122F309E@svrect1.ect.local> (raw)
Hello,
I am trying to restore from a backup db that used oids as primary keys * ... when I do this the max oid value in the new database is around the 1700 mark where as the database I am pulling in is around 20,000,000 . which means any new data added to the dataabse is going to be clobbered.
Is there a way to increment the OID by changing a value in the system tables?
thanks in advance
* at the time this was implemented way back at 7.x, from what I had read it seemed like acceptable practice :/
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ben.c@ect.com.au
Subject: Re: Restoring Backup With OIDs As Primary Key
In-Reply-To: <7DA06115D1591D41A33328B737C1F4122F309E@svrect1.ect.local>
* 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