Re: [PERFORM] Attempting to disable count triggers on cleanup

2007-09-25 Thread Dave Cramer
hubert depesz lubaczewski wrote: On Tue, Sep 25, 2007 at 07:08:42AM -0400, Dave Cramer wrote: ERROR: deadlock detected DETAIL: Process 23063 waits for ExclusiveLock on tuple (20502,48) of relation 48999028 of database 14510214; blocked by process 23110. Process 23110 waits for ShareLock on

Re: [PERFORM] Attempting to disable count triggers on cleanup

2007-09-25 Thread hubert depesz lubaczewski
On Tue, Sep 25, 2007 at 07:08:42AM -0400, Dave Cramer wrote: > ERROR: deadlock detected > DETAIL: Process 23063 waits for ExclusiveLock on tuple (20502,48) of > relation 48999028 of database 14510214; blocked by process 23110. > Process 23110 waits for ShareLock on transaction 1427023217; blocke

[PERFORM] Attempting to disable count triggers on cleanup

2007-09-25 Thread Dave Cramer
I have a database that we want to keep track of counts of rows. We have triggers on the rows which increment, and decrement a count table. In order to speed up deleting many rows we have added the following if user != 'mocospace_cleanup' then