Re: TRUNCATE

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: TRUNCATE
Дата
Msg-id GNELIHDDFBOCMGBFGEFOGEJECCAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: TRUNCATE  ("Joel Burton" <joel@joelburton.com>)
Ответы Re: TRUNCATE
Re: TRUNCATE
Список pgsql-hackers
> I'm happy w/o the FORCE option (just let TRUNCATE do it), but if enough
> people think that the FORCE keyword should be added to allow overriding of
> triggers, that could be a good compromise.
>
> But, please, don't take away the ability to TRUNCATE. Doing it when there
> are triggers is one the strengths of TRUNCATE, IMNSHO.

It seems to me that there's more and more need for an 'SET CONSTRAINTS
DISABLED' and 'SET CONSTRAINTS ENABLED' command that affects only foreign
keys.  This would basically make it ignore foreign key checks for the
remainder of the transaction.  This could be used before a TRUNCATE command,
and would also be essential when we switch to dumping ALTER TABLE/FOREIGN
KEY commands in pg_dump, and we don't want them to be checked...

Chris



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

Предыдущее
От: "Rod Taylor"
Дата:
Сообщение: Re: Operator Comments
Следующее
От: "Joel Burton"
Дата:
Сообщение: Re: TRUNCATE