Re: pg_dump: use ALTER TABLE for PKs

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pg_dump: use ALTER TABLE for PKs
Дата
Msg-id Pine.LNX.4.30.0202182242050.684-100000@peter.localdomain
обсуждение исходный текст
Ответ на pg_dump: use ALTER TABLE for PKs  (Neil Conway <nconway@klamath.dyndns.org>)
Ответы Re: pg_dump: use ALTER TABLE for PKs  (Neil Conway <nconway@klamath.dyndns.org>)
Список pgsql-hackers
Neil Conway writes:

> 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).

I think you've got the "7.2 or later" theme in your patch mixed up.  The
version number you're evaluating is the version of the database you're
dumping.  The feature you're adding is dependent on the version of the
database you're restoring into.  The version of the database you're
restoring into is always >= the pg_dump version.  Thus, you don't need any
version checks.  Plus, I think this patch is going into 7.3, no?

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: pg_dump: use ALTER TABLE for PKs
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: pg_dump: use ALTER TABLE for PKs