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 1jBgH8-0007K9-Ur for pgsql-general@arkaria.postgresql.org; Tue, 10 Mar 2020 14:54:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBgH7-0008Ke-MH for pgsql-general@arkaria.postgresql.org; Tue, 10 Mar 2020 14:54:29 +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 1jBgH5-0008Jp-Py for pgsql-general@lists.postgresql.org; Tue, 10 Mar 2020 14:54:29 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBgH0-0000Cj-Mp for pgsql-general@postgresql.org; Tue, 10 Mar 2020 14:54:27 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6578D8DC; Tue, 10 Mar 2020 10:54:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 10 Mar 2020 10:54:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=9 r3gJjBrp6qrHRmvTteN1SbxcTOt5/Ku2wyJUn6KlMo=; b=R+Hy8TjGoVm0kPxBK lox682oyFDtiadD9UqNEYD5774S1j2D9j3SttJKw4b+GKmGpwRnnSyiT+JpERowW tEbPU3VEmjfBhBxfV/8niEO2aputlEnl/qkZRfyjsUkCNawGTYxnr2TTn9w5Q3ad vlehziiz8MyEGleEayoW2ij6C0vaSc8F9eNWIr784oLtisWFwckpvP28eVHvSO36 mN7ezrm3Px+hMH5EoWc6xppigjkYf3pzznO/YChQ22YteNvkn3Z4ehcHWL4kypzW 5wpd4pDrtiTa5yv+F65JTTh98rXvPJZ/3tWIxdl0OhjJgcsYPYqgYXauYyfSeLCQ f7zaA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=9r3gJjBrp6qrHRmvTteN1SbxcTOt5/Ku2wyJUn6Kl Mo=; b=mg2cy6050hnVxMjQIdNoMGpPZG6J1wXKb4PEKBN4Ey7i+kdp6Q9ia3gyw N5MqFUtm0DUVUw10ASAoljdu+F2gscUSlkNc0fR4oRmp+/UFLpXj0oyoY7/qBKfb NeQ8dQCqgK1G6PYPtuMisseNP9AijBIk9pQVf0sG2x0iWsCqgIPen9bHbj2Vs4bN KnnJDgLRoHQXaa0/3oMoUE/gHWVcF4mVx7kl9GHg+NP1uF4M02Wmqptel8i0vaNe 6ZtWlN42be71o2pQ8RlCuLa5VThMFi/zXz9HxCteJOj5B1ib8wvn7oiyv2/2VuWl 2yEHnV6HWXioMHNzTb9esF9iFRKxg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvtddgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdqrghrtghhihhvvgdrohhrghenucfkphepjedurddvuddvrdduvdelrdduleefnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirg hnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 333643061363; Tue, 10 Mar 2020 10:54:17 -0400 (EDT) Subject: Re: How to discover what table is To: PegoraroF10 , pgsql-general@postgresql.org 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> From: Adrian Klaver Message-ID: <22a2bdfa-72f0-c687-f8d3-62685c3debbd@aklaver.com> Date: Tue, 10 Mar 2020 07:54:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <1583842571230-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/10/20 5:16 AM, PegoraroF10 wrote: > Now I have the same problem with a different message. > I´ve 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 ? Postgres version(s)? Are you using the built in logical replication or the pglogical plugin? > > On log of replica server ... > > Message > cannot truncate a table referenced in a foreign key constraint > Detail > Table "rel_indicacao" references "cad_digitacao". > Hint > Truncate table "rel_indicacao" at the same time, or use TRUNCATE ... > CASCADE. > > > > > -- > Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > > -- Adrian Klaver adrian.klaver@aklaver.com