Re: [GENERAL] disabling constraints

2004-11-07 Thread Edmund Bacon
[EMAIL PROTECTED] (Vivek Khera) writes: > > "DP" == David Parker <[EMAIL PROTECTED]> 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 s

Re: [GENERAL] disabling constraints

2004-11-04 Thread Tom Lane
Vivek Khera <[EMAIL PROTECTED]> writes: > "DP" == David Parker <[EMAIL PROTECTED]> 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 >

Re: [GENERAL] disabling constraints

2004-11-04 Thread David Parker
but maybe it wouldn't be too difficult... - DAP >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Vivek Khera >Sent: Thursday, November 04, 2004 3:05 PM >To: [EMAIL PROTECTED] >Subject: Re: [GENERAL] disabling constraints > >

Re: [GENERAL] disabling constraints

2004-11-04 Thread Vivek Khera
> "DP" == David Parker <[EMAIL PROTECTED]> 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 d

[GENERAL] disabling constraints

2004-10-28 Thread David Parker
I would like to be able to truncate all of the tables in a schema without worrying about FK constraints. I tried issuing a "SET CONSTRAINTS ALL DEFERRED" before truncating, but I still get constraint errors. Is there a way to do something like: 1) disable all constraints 2) truncate all tables 3