pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Subject: Re: How to discover what table is
Date: Wed, 11 Mar 2020 01:22:04 -0700 (MST)
Message-ID: <1583914924920-0.post@n3.nabble.com> (raw)
In-Reply-To: <42329e25-1acf-fded-d129-243c1d2e791f@aklaver.com>
References: <1583688412554-0.post@n3.nabble.com>
	<43b445af-270e-813e-76b5-01578f635b56@gmail.com>
	<1583694648424-0.post@n3.nabble.com>
	<1583842571230-0.post@n3.nabble.com>
	<22a2bdfa-72f0-c687-f8d3-62685c3debbd@aklaver.com>
	<1583854924493-0.post@n3.nabble.com>
	<42329e25-1acf-fded-d129-243c1d2e791f@aklaver.com>

Well, for now it´s solved but I´ll explain what happens to solve it better on
future.
Suppose on Master you have a database with hundreds of schemas with same
structure, so table Customer happens 500 times on that DB. That database
being replicated with publication/subscription for all tables model, just
that. Now to have new schemas added to this database you go to replica,
create them with structure only, go to master and create them with data, go
back to replica and refresh publication. But then imagine that one of those
schemas you´ve created on replica with data. This is where problem occurs
and message is just PK of Table Customer is duplicated but is not easy to
find which table because I´ll have that table and that key on 90% of my
schemas. If, on error message we just have which schema belongs that table
would be great.



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html





view thread (9+ messages)  latest in thread

Message-ID: <1583914924920-0.post@n3.nabble.com>
Permalink:  ../1583914924920-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1583914924920-0.post@n3.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: marcos@f10.com.br
  Subject: Re: How to discover what table is
  In-Reply-To: <1583914924920-0.post@n3.nabble.com>
  References: <1583688412554-0.post@n3.nabble.com> <43b445af-270e-813e-76b5-01578f635b56@gmail.com> <1583694648424-0.post@n3.nabble.com> <1583842571230-0.post@n3.nabble.com> <22a2bdfa-72f0-c687-f8d3-62685c3debbd@aklaver.com> <1583854924493-0.post@n3.nabble.com> <42329e25-1acf-fded-d129-243c1d2e791f@aklaver.com> <1583914924920-0.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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