Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction
Дата
Msg-id
7492416f-2e61-d875-6179-ea719f5e5238@2ndquadrant.com
Ответ на
Список
Дерево обсуждения
[HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Arseny Sher <a.sher@postgrespro.ru>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Arseny Sher <a.sher@postgrespro.ru>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Arseny Sher <a.sher@postgrespro.ru>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Arseny Sher <a.sher@postgrespro.ru>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Arseny Sher <a.sher@postgrespro.ru>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Arseny Sher <a.sher@postgrespro.ru>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Masahiko Sawada <sawada.mshk@gmail.com>
[HACKERS] Re: DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Noah Misch <noah@leadboat.com>
[HACKERS] Re: DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Noah Misch <noah@leadboat.com>
[HACKERS] Re: DROP SUBSCRIPTION hangs if sub is disabled in the sametransaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Re: DROP SUBSCRIPTION hangs if sub is disabled in thesame transaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Re: DROP SUBSCRIPTION hangs if sub is disabled in thesame transaction Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Arseny Sher <a.sher@postgrespro.ru>
Re: [HACKERS] DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Masahiko Sawada <sawada.mshk@gmail.com>
On 9/14/17 08:23, Alvaro Herrera wrote:
> Peter Eisentraut wrote:
>> On 9/13/17 09:56, Alvaro Herrera wrote:
>>> Tom Lane wrote:
>>>> Peter Eisentraut  writes:
>>>
>>>>> - Disallow DROP SUBSCRIPTION in a transaction under certain
>>>>> circumstances, for example if a transaction has previously manipulated
>>>>> the same subscription.
>>>
>>>> ISTM the second of those (refuse to drop an in-use subscription) is
>>>> by far the least surprising behavior.
>>>
>>> +1 for that option.  IIRC this has precedent for other object types such
>>> as tables, where we refuse some action if we have already operated on
>>> the table in the same transaction.
>>
>> What are some examples of such behavior?
> 
> Search for CheckTableNotInUse() callers.

That one uses the relcache refcount, so we can't use that mechanism
here.  I think we need something based on xmin.  The enum code has
something like it, but I don't understand the details.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Peter Eisentraut
Дата:
FAQ