pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Improve error messages for incorrect types of logical replicatio
3+ messages / 2 participants
[nested] [flat]

* pgsql: Improve error messages for incorrect types of logical replicatio
@ 2019-01-13 07:45 Michael Paquier <michael@paquier.xyz>
  2019-01-13 10:01 ` Re: pgsql: Improve error messages for incorrect types of logical replicatio Erik Rijkers <er@xs4all.nl>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Paquier @ 2019-01-13 07:45 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/373bda61d2d620e704815553978726c9be9e1209

Modified Files
--------------
src/backend/executor/execReplication.c | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Improve error messages for incorrect types of logical replicatio
  2019-01-13 07:45 pgsql: Improve error messages for incorrect types of logical replicatio Michael Paquier <michael@paquier.xyz>
@ 2019-01-13 10:01 ` Erik Rijkers <er@xs4all.nl>
  2019-01-13 13:43   ` Re: pgsql: Improve error messages for incorrect types of logical replicatio Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 3+ messages in thread

From: Erik Rijkers @ 2019-01-13 10:01 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org

On 2019-01-13 08:45, Michael Paquier wrote:
> Improve error messages for incorrect types of logical replication 
> targets
> 
> Discussion:
> https://postgr.es/m/41799bee-40eb-7bb5-80b1-325ce17518bc@lab.ntt.co.jp
> 
> master
> https://git.postgresql.org/pg/commitdiff/373bda61d2d620e704815553978726c9be9e1209
> 
> Modified Files
> --------------
> src/backend/executor/execReplication.c | 22 ++++++++++++++++++++--

Good idea, but now one message (for RELKIND_FOREIGN_TABLE) omits 
'target'.

So I think
   errmsg("cannot use relation \"%s.%s\" as logical replication"

should be:
   errmsg("cannot use relation \"%s.%s\" as logical replication target"

Do you agree?


Thanks,


Erik Rijkers










^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Improve error messages for incorrect types of logical replicatio
  2019-01-13 07:45 pgsql: Improve error messages for incorrect types of logical replicatio Michael Paquier <michael@paquier.xyz>
  2019-01-13 10:01 ` Re: pgsql: Improve error messages for incorrect types of logical replicatio Erik Rijkers <er@xs4all.nl>
@ 2019-01-13 13:43   ` Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2019-01-13 13:43 UTC (permalink / raw)
  To: Erik Rijkers <er@xs4all.nl>; +Cc: pgsql-committers@lists.postgresql.org

On Sun, Jan 13, 2019 at 11:01:42AM +0100, Erik Rijkers wrote:
> Good idea, but now one message (for RELKIND_FOREIGN_TABLE) omits 'target'.
> 
> Do you agree?

Oops, fixed.  Thanks!
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-01-13 13:43 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-13 07:45 pgsql: Improve error messages for incorrect types of logical replicatio Michael Paquier <michael@paquier.xyz>
2019-01-13 10:01 ` Erik Rijkers <er@xs4all.nl>
2019-01-13 13:43   ` Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox