Re: After an error - pg_replication_slot is dropped

Поиск
Список
Период
Сортировка
От Petr Jelinek
Тема Re: After an error - pg_replication_slot is dropped
Дата
Msg-id 2a72d1a2-ca25-f349-a47f-98206a22fc2e@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: After an error - pg_replication_slot is dropped  (tushar <tushar.ahuja@enterprisedb.com>)
Список pgsql-hackers
On 16/02/18 12:38, tushar wrote:
> On 02/16/2018 04:02 PM, Petr Jelinek wrote:
>> It's because you are creating temporary slot. Temporary slots are
>> removed on error, that's a documented behavior.
> 
> Thanks for pointing out but It looks weird behavior - even a small mea
> culpa can remove the slot. Temporary table - doesn't go automatically
> after an error ?
> 

Temporary tables have transactional properties, slots don't (even the
non-temporary). For example if you create replication slot in
transaction and then abort it, the slot will survive. That's the price
we pay for ability to create slots on standby.

-- 
  Petr Jelinek                  http://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Julian Markwort
Дата:
Сообщение: [PATCH] pg_hba.conf : new auth option : clientcert=verify-full
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] [bug-fix] Cannot select big bytea values (~600MB)