Re: disabling constraints

Поиск
Список
Период
Сортировка
От Vivek Khera
Тема Re: disabling constraints
Дата
Msg-id x7sm7p9y86.fsf@yertle.int.kciLink.com
обсуждение исходный текст
Ответ на disabling constraints  ("David Parker" <dparker@tazznetworks.com>)
Ответы Re: disabling constraints  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
>>>>> "DP" == David Parker <dparker@tazznetworks.com> writes:

DP> I would like to be able to truncate all of the tables in a schema
DP> without worrying about FK constraints. I tried issuing a "SET
DP> CONSTRAINTS ALL DEFERRED" before truncating, but I still get
DP> constraint errors. Is there a way to do something like:

Why don't you truncate your tables in an order that won't violate
FK's?  Or do you have circular references?

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD  +1-301-869-4449 x806
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

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

Предыдущее
От: William Yu
Дата:
Сообщение: Re: PostgreSQL on Linux PC vs MacOS X
Следующее
От: Vivek Khera
Дата:
Сообщение: Re: routine reindexing in 7.4.6/8.0?