Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSmgM-0004sO-L1 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Sep 2021 20:48:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mSmgL-0006bh-J9 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Sep 2021 20:48:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSmgL-0006bZ-9D for pgsql-hackers@lists.postgresql.org; Tue, 21 Sep 2021 20:48:01 +0000 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSmgI-0000LH-WC for pgsql-hackers@postgresql.org; Tue, 21 Sep 2021 20:48:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1632257279; x=1663793279; h=to:cc:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding:subject; bh=QEHknpUKKNl7qVZYQMV7vLAtGYg34ExOJJ/zFMiiDmI=; b=MTOvFKrJhcde+LXy7rtzNCHm7x+eFBUjoYmieP7g+e0N1rwW/k1otHew MWc0hZIzqXS2sCT8lQT76b1r+tTBdSs9caGO335+liHjafhqCHsnFQ7fA VDNFeMBr+C4g+udxM403Vr2uHVV8uAaU8lKREINl4lhsL4ZmV3b+q4wNu I=; X-IronPort-AV: E=Sophos;i="5.85,311,1624320000"; d="scan'208";a="143554863" Subject: Re: relation OID in ReorderBufferToastReplace error message Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-iad-1a-e823fbde.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-6001.iad6.amazon.com with ESMTP; 21 Sep 2021 20:47:56 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1a-e823fbde.us-east-1.amazon.com (Postfix) with ESMTPS id 5B360C090F; Tue, 21 Sep 2021 20:47:55 +0000 (UTC) Received: from EX13D18UWA002.ant.amazon.com (10.43.160.199) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 21 Sep 2021 20:47:55 +0000 Received: from 186590ce269b.ant.amazon.com (10.43.160.106) by EX13D18UWA002.ant.amazon.com (10.43.160.199) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 21 Sep 2021 20:47:54 +0000 To: Amit Kapila CC: Tom Lane , PostgreSQL-development , "Drouvot, Bertrand" , Alvaro Herrera , Andres Freund References: <808ed65b-994c-915a-361c-577f088b837f@amazon.com> <772142.1625191000@sss.pgh.pa.us> <48B6BE63-FE39-45B8-9AD8-819DAAC5877F@amazon.com> <777837.1625197484@sss.pgh.pa.us> From: Jeremy Schneider Message-ID: <1f45ae2e-aa17-f485-2f33-7ba774f6197d@amazon.com> Date: Tue, 21 Sep 2021 13:47:54 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.43.160.106] X-ClientProxiedBy: EX13D01UWB003.ant.amazon.com (10.43.161.94) To EX13D18UWA002.ant.amazon.com (10.43.160.199) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/20/21 22:14, Amit Kapila wrote: > On Fri, Sep 17, 2021 at 10:53 AM Amit Kapila wrote: >> >> I don't think it is a bad idea to print additional information as you >> are suggesting but why only for this error? It could be useful to >> investigate any other error we get during decoding. I think normally >> we add such additional information via error_context. We have recently >> added/enhanced it for apply-workers, see commit [1]. >> >> I think here we should just print the relation name in the error >> message you pointed out and then work on adding additional information >> via error context as a separate patch. What do you think? > > Attached please find the patch which just modifies the current error > message as proposed by you. I am planning to commit it in a day or two > unless there are comments or any other suggestions. Looks good to me. I see that I hadn't used the macro for getting the relation name, thanks for fixing that! -Jeremy -- Jeremy Schneider Database Engineer Amazon Web Services