Re: How to discover what table is - Mailing list pgsql-general

From PegoraroF10
Subject Re: How to discover what table is
Date
Msg-id 1583914924920-0.post@n3.nabble.com
Whole thread Raw
In response to Re: How to discover what table is  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: How to discover what table is  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Streaming replication - 11.5
Next
From: Torsten Krah
Date:
Subject: Force WAL cleanup on running instance