Re: Reducing lock strength of adding foreign keys

Поиск
Список
Период
Сортировка
От Andreas Karlsson
Тема Re: Reducing lock strength of adding foreign keys
Дата
Msg-id 5448AD51.6090102@proxel.se
обсуждение исходный текст
Ответ на Re: Reducing lock strength of adding foreign keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 10/22/2014 04:13 PM, Tom Lane wrote:
> Andreas Karlsson <andreas@proxel.se> writes:
>> I have attached a proof of concept
>> patch which reduces the lock strength to ShareLock.
>
> You're kidding, right?  ShareLock isn't even self-exclusive.

Why would it have to be self-exclusive? As far as I know we only need to 
ensure that nobody changes the rows while we add the trigger. Adding 
multiple triggers concurrently should not pose a problem unless I am 
missing something (which I probably am).

Andreas





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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: [PATCH] add ssl_protocols configuration option
Следующее
От: Dag-Erling Smørgrav
Дата:
Сообщение: Re: [PATCH] add ssl_protocols configuration option