]> granicus.if.org Git - postgresql/commit
Improve error messages for incorrect types of logical replication targets
authorMichael Paquier <michael@paquier.xyz>
Sun, 13 Jan 2019 07:39:49 +0000 (16:39 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 13 Jan 2019 07:39:49 +0000 (16:39 +0900)
commit373bda61d2d620e704815553978726c9be9e1209
tree7a0ae990ba184b88c84c417a219afe97b2ae567a
parent1845ca2cfd1f7fd6b536900cf129f6734a4ddded
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
src/backend/executor/execReplication.c