Re: error message when subscription target is a partitioned table

Поиск
Список
Период
Сортировка
От Amit Langote
Тема Re: error message when subscription target is a partitioned table
Дата
Msg-id e769a07a-0eed-b2b1-5ac5-85b417384218@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: error message when subscription target is a partitioned table  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: error message when subscription target is a partitioned table  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 2018/12/03 17:51, Magnus Hagander wrote:
> On Mon, Dec 3, 2018 at 7:39 AM Tatsuo Ishii <ishii@sraoss.co.jp> wrote:
>>> Could we improve the error message that's output when the subscription
>>> target relation is a partitioned table?  Currently, we get:
>>>
>>> ERROR:  logical replication target relation "public.foo" is not a table
>>>
>>> I think it'd be more helpful to get:
>>>
>>> ERROR: "public.foo" is a partitioned table
>>> DETAIL: Partitioned tables are not supported as logical replication
>> targets
>>>
>>> Thoughts?
>>
>> +1
> 
> +1 as well. That is definitely confusing -- to most people, that is still a
> table...

Okay, here is a patch.  I didn't find any tests in subscription.sql
related to unsupported relkinds, so didn't bother adding one for this case
either.

Thanks,
Amit

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: GIN predicate locking slows down valgrind isolationtests tremendously
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: error message when subscription target is a partitioned table