Re: Dump of table structure is not consistent

From: Poul Møller Hansen <freebsd(at)pbnet(dot)dk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Dump of table structure is not consistent
Date: 2007-10-01 21:08:47
Message-ID: 470161DF.5070308@pbnet.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> \d my.table is showing me the primary key as:
> "unitstat_pkey" PRIMARY KEY, btree (id)
>
> But the looking into the table structure produced by
> pg_dump -s -n my -t table db
>
> I'm getting gthe primary key shown as:
> ADD CONSTRAINT unistat_pkey PRIMARY KEY (id);
>
> That has been the name of it, but I altered it executing:
> ALTER TABLE unistat_pkey RENAME TO unitstat_pkey
>
Solved it with this statement
update pg_catalog.pg_constraint set conname = 'unitstat_pkey' where
conname = 'unistat_pkey'

Poul

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Terry Yapt 2007-10-01 21:38:53 Re: windows and pg 8.2 (change database to another server)
Previous Message Phoenix Kiula 2007-10-01 20:30:52 Re: sha1 function