From: | Joe Maldonado <jmaldonado(at)webehosting(dot)biz> |
---|---|
To: | |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: TRUNCATE locking problem |
Date: | 2005-07-18 15:04:28 |
Message-ID: | 42DBC4FC.2080605@webehosting.biz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks...I just wanted to verify that it was the intended behaviour
prior to going in and changing code :)
- Joe Maldonado
Tom Lane wrote:
>Joe Maldonado <jmaldonado(at)webehosting(dot)biz> writes:
>
>
>>It seems that TRUNCATE is first posting a lock on the table and then
>>waiting for other transactions to finish before truncating the table
>>thus blocking all other operations.
>>
>>
>
>That's what it's supposed to do. If you have a problem with the length
>of the delay, find the (other) transaction that's accessing the table
>for too long and fix that.
>
> regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Janning Vygen | 2005-07-18 16:03:15 | Re: Changes to not deferred FK in 8.0.3 to 7.4? |
Previous Message | Dawid Kuroczko | 2005-07-18 15:00:15 | Re: How to create unique constraint on NULL columns |