Re: ACCESS EXCLUSIVE LOCK

Поиск
Список
Период
Сортировка
От seth.m.green@gmail.com
Тема Re: ACCESS EXCLUSIVE LOCK
Дата
Msg-id 1141307710.506042.246170@t39g2000cwt.googlegroups.com
обсуждение исходный текст
Ответ на ACCESS EXCLUSIVE LOCK  (seth.m.green@gmail.com)
Список pgsql-hackers
No.  Here is the offending SP:

CREATE OR REPLACE FUNCTION update_my_cache() RETURNS void AS '
BEGIN
 TRUNCATE TABLE my_cache_table; INSERT INTO my_cache_table SELECT * FROM
get_my_stuff_to_fill_cache_table();
 RETURN;

END
' LANGUAGE plpgsql;

I've checked the SP get_my_stuff_to_fill_cache_table() that is run from
within update_my_cache() and it does not cause locks. So it seems
something else about the update_my_cache() SP is causing this access
exclusive lock which prevents anything from even dirty reading the
table for the entire time it executes (roughly 10 seconds);



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mon Nsi
Дата:
Сообщение: heaptuple over the network
Следующее
От: seth.m.green@gmail.com
Дата:
Сообщение: Re: ACCESS EXCLUSIVE LOCK