error message when subscription target is a partitioned table

Amit Langote <langote_amit_f8@lab.ntt.co.jp>

From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-12-03T06:34:36Z
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?

Thanks,
Amit



Commits

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