Re: ACCESS EXCLUSIVE LOCK - Mailing list pgsql-hackers

From seth.m.green@gmail.com
Subject Re: ACCESS EXCLUSIVE LOCK
Date
Msg-id 1141308960.306482.10590@t39g2000cwt.googlegroups.com
Whole thread Raw
In response to Re: ACCESS EXCLUSIVE LOCK  (Andrew - Supernews <andrew+nonews@supernews.com>)
Responses Re: ACCESS EXCLUSIVE LOCK
List pgsql-hackers
> TRUNCATE is another command that takes an access exclusive lock.

The whole SP takes about 10 seconds to run total.  The TRUNCATE command
only takes less than a second.  However, the access exclusive lock is
held throughout the entire SP, not just during the execution of the
TRUNCATE command. Shouldn't TRUNCATE be releasing the lock as soon as
it finishes?



pgsql-hackers by date:

Previous
From: seth.m.green@gmail.com
Date:
Subject: Re: ACCESS EXCLUSIVE LOCK
Next
From: seth.m.green@gmail.com
Date:
Subject: Re: ACCESS EXCLUSIVE LOCK