pg_dump: use ALTER TABLE for PKs

Поиск
Список
Период
Сортировка
От Neil Conway
Тема pg_dump: use ALTER TABLE for PKs
Дата
Msg-id 1014085565.372.8.camel@jiro
обсуждение исходный текст
Ответы Re: pg_dump: use ALTER TABLE for PKs  (Peter Eisentraut <peter_e@gmx.net>)
Re: pg_dump: use ALTER TABLE for PKs  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Re: pg_dump: use ALTER TABLE for PKs  (Philip Warner <pjw@rhyme.com.au>)
Re: pg_dump: use ALTER TABLE for PKs  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
I've attached a patch which enhances pg_dump to use ALTER TABLE when
defining the primary keys of a table (instead of including this
information in the table definition).

This follows a suggestion by Christopher Kings-Lynne (good idea!).

The patch is pretty simple, partly because the code was already there,
just commented out ;-) I fixed a typo and added some comments.

Bruce suggested that this should get some code review, since a bug in
pg_dump would be bad news. Any comments would be welcome.

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

Вложения

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

Предыдущее
От: Samik Raychaudhuri
Дата:
Сообщение: Selectively compile psql
Следующее
От: Neil Conway
Дата:
Сообщение: Re: pg_dump: use ALTER TABLE for PKs