Re: Dump of table structure is not consistent

Поиск
Список
Период
Сортировка
От Poul Møller Hansen
Тема Re: Dump of table structure is not consistent
Дата
Msg-id 470161DF.5070308@pbnet.dk
обсуждение исходный текст
Ответ на Dump of table structure is not consistent  (Poul Møller Hansen <freebsd@pbnet.dk>)
Список 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



В списке pgsql-general по дате отправления:

Предыдущее
От: "Phoenix Kiula"
Дата:
Сообщение: Re: sha1 function
Следующее
От: Terry Yapt
Дата:
Сообщение: Re: windows and pg 8.2 (change database to another server)