Re: error message when subscription target is a partitioned table - Mailing list pgsql-hackers

From Amit Langote
Subject Re: error message when subscription target is a partitioned table
Date
Msg-id e769a07a-0eed-b2b1-5ac5-85b417384218@lab.ntt.co.jp
Whole thread Raw
In response to Re: error message when subscription target is a partitioned table  (Magnus Hagander <magnus@hagander.net>)
Responses Re: error message when subscription target is a partitioned table
List 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

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: GIN predicate locking slows down valgrind isolationtests tremendously
Next
From: Michael Paquier
Date:
Subject: Re: error message when subscription target is a partitioned table