Search Postgresql Archives

Re: Dump of table structure is not consistent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




\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



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux