Re: [HACKERS] Create subscription with `create_slot=false` andincorrect slot name

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] Create subscription with `create_slot=false` andincorrect slot name
Дата
Msg-id 759ec49e-7e35-5c12-3580-0d06361101a1@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Create subscription with `create_slot=false` andincorrect slot name  (Kuntal Ghosh <kuntalghosh.2007@gmail.com>)
Ответы Re: [HACKERS] Create subscription with `create_slot=false` andincorrect slot name  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 5/23/17 02:33, Kuntal Ghosh wrote:
>> The command succeed even if slot_name is invalid. That's because slot_name
>> isn't validated. ReplicationSlotValidateName() should be called in
>> parse_subscription_options() to avoid a pilot error. IMHO we should prevent
>> a future error (use of invalid slot name).
>>
> +1. Since, slot_name can be provided even when create_slot is set
> false, it should be validated as well while creating the subscription.

This came up in a previous thread.  It is up to the publishing end what
slot names it accepts.  So running the validation locally is incorrect.

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



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] ALTER PUBLICATION materializing the list of tables
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] fix for table syncing with different column order