Re: ACCESS EXCLUSIVE LOCK

From: seth(dot)m(dot)green(at)gmail(dot)com
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ACCESS EXCLUSIVE LOCK
Date: 2006-03-02 14:16:00
Message-ID: 1141308960.306482.10590@t39g2000cwt.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> 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?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-03-02 14:17:03 Re: implement prepared queries in plperl
Previous Message James_Hughes 2006-03-02 14:15:37 Re: Initdb on Windows 2003

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2006-03-02 14:17:03 Re: implement prepared queries in plperl
Previous Message Andrew - Supernews 2006-03-02 14:07:14 Re: ACCESS EXCLUSIVE LOCK