Re: ACCESS EXCLUSIVE LOCK - Mailing list pgsql-hackers

From Andrew - Supernews
Subject Re: ACCESS EXCLUSIVE LOCK
Date
Msg-id slrne0dv0i.5md.andrew+nonews@atlantis.supernews.net
Whole thread Raw
In response to ACCESS EXCLUSIVE LOCK  (seth.m.green@gmail.com)
Responses Re: ACCESS EXCLUSIVE LOCK
List pgsql-hackers
On 2006-03-02, seth.m.green@gmail.com <seth.m.green@gmail.com> wrote:
> No.  Here is the offending SP:
>
> CREATE OR REPLACE FUNCTION update_my_cache() RETURNS void AS '
> BEGIN
>
>   TRUNCATE TABLE my_cache_table;

TRUNCATE is another command that takes an access exclusive lock.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: ACCESS EXCLUSIVE LOCK
Next
From:
Date:
Subject: Re: Initdb on Windows 2003