Improve publication error messages
Daniel Gustafsson <dgustafsson@postgresql.org>
Improve publication error messages Commit 81d5995b4b introduced more fine-grained errormessages for incorrect relkinds for publication, while unlogged and temporary tables were reported with using the same message. This provides separate error messages for these types of relpersistence. Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Reviewed-by: Jeevan Ladhe <jeevan.ladhe@enterprisedb.com> Reviewed-by: Euler Taveira <euler@eulerto.com> Discussion: https://postgr.es/m/CALj2ACW9S=AswyQHjtO6WMcsergMkCBTtzXGrM8DX26DzfeTLQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/postgres_fdw/expected/postgres_fdw.out | modified | +6 −0 |
| contrib/postgres_fdw/sql/postgres_fdw.sql | modified | +5 −0 |
| src/backend/catalog/pg_publication.c | modified | +8 −2 |
| src/test/regress/expected/publication.out | modified | +16 −0 |
| src/test/regress/sql/publication.sql | modified | +14 −0 |
Discussion
- Logical Replication - improve error message while adding tables to the publication in check_publication_add_relation 30 messages · 2021-03-10 → 2021-11-17