Skip site navigation (1) Skip section navigation (2)

Re: Problems With pg_dumpall and OIDs

From: "Milen A(dot) Radev" <milen(at)radev(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Problems With pg_dumpall and OIDs
Date: 2008-11-19 22:48:43
Message-ID: gg254a$tjp$ (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Tim Gustafson написа:
> Hello,
> I currently have a old GForge installation running on Postgres 7.4.19.  GForge relies on the OID columns of their application tables for different things.  I'm trying to upgrade Postgres to 8.2, and in order to do so, I'm doing:
> pg_dumpall --oids --clean > foo.sql
> However, the "CREATE TABLE" statements in foo.sql don't have "WITH OIDS" specified, so when the tables are created in the new server, they are not getting OID columns, and then the data load portion of the SQL script appears to essentially be ignoring the OID information.
> Is there an updated pg_dumpall that fixes this problem?  Was this a known issue in the 7.4.19 pg_dumpall that was fixed?  Any suggestions on how best to get the data out of the 7.4 server and in to the 8.2 server while maintaining all the OID information?

A workaround: temporarily turn to "on" the value off the "default_with_oids"
parameter in your configuration file (the defaults is "off").

Milen A. Radev

In response to


pgsql-admin by date

Next:From: Tim GustafsonDate: 2008-11-19 23:05:39
Subject: Re: Problems With pg_dumpall and OIDs
Previous:From: Tim GustafsonDate: 2008-11-19 22:35:54
Subject: Problems With pg_dumpall and OIDs

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group