CREATE TRIGGER locking

Поиск
Список
Период
Сортировка
От Neil Conway
Тема CREATE TRIGGER locking
Дата
Msg-id 1151994207.5039.18.camel@localhost
обсуждение исходный текст
Ответы Re: CREATE TRIGGER locking  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Last year, I questioned why CREATE TRIGGER acquires an
AccessExclusiveLock on its target table:

    http://archives.postgresql.org/pgsql-hackers/2005-03/msg00764.php

Acquiring an ExclusiveLock should be sufficient: we can safely allow
concurrent SELECTs on the table. (The -hackers thread discusses both
CREATE TRIGGER and ALTER TABLE ADD FK; the latter might require some
more consideration, so I'll tackle that later.)

This patch implements this change, and updates the documentation.

Barring any objections, I'll apply this in a day or two.

-Neil


Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ADD/DROPS INHERIT (actually INHERIT / NO INHERIT)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] PQescapeIdentifier