Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jBwd3-0003Aw-Af for pgsql-general@arkaria.postgresql.org; Wed, 11 Mar 2020 08:22:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBwd1-0005wU-61 for pgsql-general@arkaria.postgresql.org; Wed, 11 Mar 2020 08:22:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBwd0-0005wN-S1 for pgsql-general@lists.postgresql.org; Wed, 11 Mar 2020 08:22:10 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jBwcx-00015w-E1 for pgsql-general@postgresql.org; Wed, 11 Mar 2020 08:22:10 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id E12421B9E3910 for ; Wed, 11 Mar 2020 01:22:04 -0700 (MST) Date: Wed, 11 Mar 2020 01:22:04 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1583914924920-0.post@n3.nabble.com> 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> Subject: Re: How to discover what table is MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Well, for now it=C2=B4s solved but I=C2=B4ll 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=C2=B4ve created on replica with data. This is where problem occ= urs and message is just PK of Table Customer is duplicated but is not easy to find which table because I=C2=B4ll have that table and that key on 90% of m= y 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.h= tml