Re: error message when subscription target is a partitioned table

Tatsuo Ishii <ishii@sraoss.co.jp>

From: Tatsuo Ishii <ishii@sraoss.co.jp>
To: Langote_Amit_f8@lab.ntt.co.jp
Cc: pgsql-hackers@postgresql.org
Date: 2018-12-03T06:39:25Z
Lists: pgsql-hackers
> Hi,
> 
> 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.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


Commits

  1. Improve error messages for incorrect types of logical replication targets