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 1jBdo4-0000zd-MU for pgsql-general@arkaria.postgresql.org; Tue, 10 Mar 2020 12:16:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBdo1-0007rg-PL for pgsql-general@arkaria.postgresql.org; Tue, 10 Mar 2020 12:16:17 +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 1jBdo1-0007r6-FR for pgsql-general@lists.postgresql.org; Tue, 10 Mar 2020 12:16:17 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jBdnx-0007Iu-SE for pgsql-general@postgresql.org; Tue, 10 Mar 2020 12:16:16 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 435A51B9898BE for ; Tue, 10 Mar 2020 05:16:11 -0700 (MST) Date: Tue, 10 Mar 2020 05:16:11 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1583842571230-0.post@n3.nabble.com> In-Reply-To: <1583694648424-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> 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 Now I have the same problem with a different message. I=C2=B4ve added a table on all schemas and did a refresh publication. when postgres sees a new table on publisher he goes to replicamand trucates that table to start copying. ok but I have 300 schemas, how can I know what schema that table belongs to ? On log of replica server ... Message cannot truncate a table referenced in a foreign key constraint=09 Detail Table "rel_indicacao" references "cad_digitacao".=09 Hint Truncate table "rel_indicacao" at the same time, or use TRUNCATE ... CASCADE. -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.h= tml