Re: [Sender Address Forgery]Re: error message when subscriptiontarget is a partitioned table - Mailing list pgsql-hackers

From Amit Langote
Subject Re: [Sender Address Forgery]Re: error message when subscriptiontarget is a partitioned table
Date
Msg-id 7dbe5483-2ce2-47b5-f182-9cf1d8377bbe@lab.ntt.co.jp
Whole thread Raw
In response to Re: [Sender Address Forgery]Re: error message when subscriptiontarget is a partitioned table  (Michael Paquier <michael@paquier.xyz>)
Responses Re: [Sender Address Forgery]Re: error message when subscriptiontarget is a partitioned table  (Arkhena <Arkhena@gmail.com>)
List pgsql-hackers
On 2019/01/10 14:25, Michael Paquier wrote:
> On Tue, Jan 08, 2019 at 04:42:35PM +0900, Michael Paquier wrote:
>> I can see your point, though I would stick with
>> ERRCODE_WRONG_OBJECT_TYPE for consistency with the existing code and
>> because the code is intended to not work on anything else than plain
>> tables, at least now.
> 
> Attached are my suggestions shaped as a patch.  Thoughts?

Thanks for updating the patch and sorry couldn't reply sooner.

Your rewritten version is perhaps fine, although I remain a bit concerned
that some users might be puzzled when they see this error, that is, if
they interpret the message as "it's impossible to use a partitioned table
as logical replication target".

Thanks,
Amit



pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: GSoC 2019
Next
From: Amit Langote
Date:
Subject: Re: speeding up planning with partitions