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 1jAzhc-0000Qq-3C for pgsql-general@arkaria.postgresql.org; Sun, 08 Mar 2020 17:27:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jAzhZ-0007L1-FW for pgsql-general@arkaria.postgresql.org; Sun, 08 Mar 2020 17:26:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jAzhZ-0007Jd-1l for pgsql-general@lists.postgresql.org; Sun, 08 Mar 2020 17:26:57 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jAzhW-0000f2-73 for pgsql-general@postgresql.org; Sun, 08 Mar 2020 17:26:55 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 921CE1B8C81FE for ; Sun, 8 Mar 2020 10:26:52 -0700 (MST) Date: Sun, 8 Mar 2020 10:26:52 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1583688412554-0.post@n3.nabble.com> Subject: How to discover what table is MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I have a publication/subscription replication. Then this week started to see this message on Log of replica server. Message is "duplicate key value violates unique constraint "pksyslookup"" Detail is "Key (lookup_id)=(56) already exists." and on production server message is "logical decoding found consistent point at 5D5/5CD64ED0" I have 200 schemas on that database and every schema has that table, so ho can I discover what table is having that violation ? There is a way to know what WAL is being processed and get the command should run to discover what table should be updated ? -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html