Re: AW: Proposal: More flexible backup/restore via pg_dump

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: AW: Proposal: More flexible backup/restore via pg_dump
Дата
Msg-id 2475.962325058@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: AW: Proposal: More flexible backup/restore via pg_dump  ("Stephan Szabo" <sszabo@kick.com>)
Ответы Re: AW: Proposal: More flexible backup/restore via pg_dump  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
"Stephan Szabo" <sszabo@kick.com> writes:
>> If we had ALTER TABLE ADD CONSTRAINT then the problem would be largely
>> solved, I believe.  This should be a minor exercise --- the heavy
>> lifting is already done, because heap.c's AddRelationRawConstraints()
>> is already set up to be invokable on a pre-existing relation.

> Does the AddRelationRawConstraints() check that the constraint is
> satisified as well when you add it?  It didn't look like it did, but I
> could be missing something.

Oh, you're right, it does not.  So you'd first have to run through the
table and verify that the constraint holds for each existing tuple.
Doesn't seem like a big deal though...
        regards, tom lane


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

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: AW: Big 7.1 open items
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Big 7.1 open items