Improve error messages for incorrect types of logical replication targets

Michael Paquier <michael@paquier.xyz>

Commit: 373bda61d2d620e704815553978726c9be9e1209
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-01-13T07:39:49Z
Releases: 12.0
Improve error messages for incorrect types of logical replication targets

If trying to use something else than a plain table as logical
replication target, a rather-generic error message gets used to report
the problem.  This can be confusing when it comes to foreign tables and
partitioned tables, so use more dedicated messages in these cases.

Author: Amit Langote
Reviewed-by: Peter Eisentraut, Magnus Hagander, Michael Paquier
Discussion: https://postgr.es/m/41799bee-40eb-7bb5-80b1-325ce17518bc@lab.ntt.co.jp

Files

PathChange+/−
src/backend/executor/execReplication.c modified +20 −2

Discussion