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 1jB0Oa-0005Tm-Rq for pgsql-general@arkaria.postgresql.org; Sun, 08 Mar 2020 18:11:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jB0OX-0005WX-KB for pgsql-general@arkaria.postgresql.org; Sun, 08 Mar 2020 18:11:21 +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 1jB0OX-0005WP-80 for pgsql-general@lists.postgresql.org; Sun, 08 Mar 2020 18:11:21 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jB0OR-0002aS-2d for pgsql-general@lists.postgresql.org; Sun, 08 Mar 2020 18:11:20 +0000 Received: by mail-ot1-x336.google.com with SMTP id x19so7395312otp.7 for ; Sun, 08 Mar 2020 11:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=tsPpnItZgDAWcV/EV4jycyBJP2A0NQZQZ+3e+XPvJOc=; b=T3omfjpY45kqaXIpxWitISu5gUm93EKyczCRdX1F0aBOSThH/tkbDlA9EKZuC0Vtyp OIHVkN/+w8U06xQ9WOaVhxotAFuR5pfGAtoneyicVLcnAwgMdCejAK3wuWqyIxnNy2w/ 2iTOIQji0hf8m3yNdltBw1wwjduW1UF32DhS1cPwfoYiotgc0trqNGF4NOHvOWEcJYSa 2V+OTRCP0RhBttzwSH/QyLCpbTmkfT8uYS2UO1ZgxG25QnGd93TiK87IcXnVPoK0aJGI +8kNQFGP4x763+QZrUS+uvRH7ghsoW2SMOFlt7x2dxqcfB9PGZg+OTkWsHqpPv2Duu1S A2ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=tsPpnItZgDAWcV/EV4jycyBJP2A0NQZQZ+3e+XPvJOc=; b=De28AjjR/HQdO4BShtjFfTkkIlVjjKcK/x3ui9Hu6jlhPI3Z5uBSj9cGV8mZVA2wKQ 531aHLvntK5WwDbayiXirSD7YU22ubGkAs3jaVdwRvdUb5CRGO83W93VD+XhgyU3HrQf jgtahlA2jmqfwDTJfZlEcmtAgU89We8DrE/XZYRbNtUw2PKTEjPd4Oq2O/BBYZPiAtjS Lzu3Dp6NmOW2WBlPTl8AUEUVLJCSI3xptXrMiScuCWnQy2OTtFecdEKFfimbhauRW6ob WupN1tQ8EnKoc7haOLLLePf/j8LcpeNlOhQ5sMO3GZjDkWdRsHvpmTiVLO1wfGO71JAg bErg== X-Gm-Message-State: ANhLgQ3bvuAiM5MafLAose0Z6VOZNrMNBlRC+TkOc5hGmh9W5A51CJOH ArzSzupJ/swPfwVm+2FO7H4QPrWr1NU= X-Google-Smtp-Source: ADFU+vsjUSwzE53w5pUF10VfDOUtakqDnBuB5FFc9e/pxqHwZgx15VQjw1Bo240gCupajGCnhcfBUQ== X-Received: by 2002:a9d:5e8a:: with SMTP id f10mr10895335otl.143.1583691072250; Sun, 08 Mar 2020 11:11:12 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id s22sm3698765otr.57.2020.03.08.11.11.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Mar 2020 11:11:11 -0700 (PDT) Subject: Re: How to discover what table is To: pgsql-general@lists.postgresql.org References: <1583688412554-0.post@n3.nabble.com> From: Ron Message-ID: <43b445af-270e-813e-76b5-01578f635b56@gmail.com> Date: Sun, 8 Mar 2020 13:11:10 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1583688412554-0.post@n3.nabble.com> Content-Type: multipart/alternative; boundary="------------C220469D7127E7CD91E1F703" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------C220469D7127E7CD91E1F703 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 3/8/20 12:26 PM, PegoraroF10 wrote: > 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 ? Are you asking which *schema* it's in? -- Angular momentum makes the world go 'round. --------------C220469D7127E7CD91E1F703 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 3/8/20 12:26 PM, PegoraroF10 wrote:
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 ? 

Are you asking which schema it's in?

--
Angular momentum makes the world go 'round.
--------------C220469D7127E7CD91E1F703--