pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeremy Schneider <schnjere@amazon.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Drouvot, Bertrand <bdrouvot@amazon.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: relation OID in ReorderBufferToastReplace error message
Date: Tue, 21 Sep 2021 13:47:54 -0700
Message-ID: <1f45ae2e-aa17-f485-2f33-7ba774f6197d@amazon.com> (raw)
In-Reply-To: <CAA4eK1+ir8Tu211=w4AFT53+GZzAhgVKG8beHrSiCEzo22NqgQ@mail.gmail.com>
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>
	<abc2552c-acd0-ecd3-0bd9-1b398be29cbf@amazon.com>
	<ace5f8ea-4777-b045-ba02-6a042a071919@amazon.com>
	<CAA4eK1LraARugiEEpkjJVDXEeTukW1ihG_6=nVEZ1972Z1vTeg@mail.gmail.com>
	<CAA4eK1+ir8Tu211=w4AFT53+GZzAhgVKG8beHrSiCEzo22NqgQ@mail.gmail.com>

On 9/20/21 22:14, Amit Kapila wrote:
> On Fri, Sep 17, 2021 at 10:53 AM Amit Kapila <amit.kapila16@gmail.com> 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





view thread (19+ messages)  latest in thread

Message-ID: <1f45ae2e-aa17-f485-2f33-7ba774f6197d@amazon.com>
Permalink:  ../1f45ae2e-aa17-f485-2f33-7ba774f6197d@amazon.com/
Also on:    postgresql.org/message-id/1f45ae2e-aa17-f485-2f33-7ba774f6197d@amazon.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: schnjere@amazon.com, amit.kapila16@gmail.com, tgl@sss.pgh.pa.us, bdrouvot@amazon.com, alvherre@alvh.no-ip.org, andres@anarazel.de
  Subject: Re: relation OID in ReorderBufferToastReplace error message
  In-Reply-To: <1f45ae2e-aa17-f485-2f33-7ba774f6197d@amazon.com>
  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> <abc2552c-acd0-ecd3-0bd9-1b398be29cbf@amazon.com> <ace5f8ea-4777-b045-ba02-6a042a071919@amazon.com> <CAA4eK1LraARugiEEpkjJVDXEeTukW1ihG_6=nVEZ1972Z1vTeg@mail.gmail.com> <CAA4eK1+ir8Tu211=w4AFT53+GZzAhgVKG8beHrSiCEzo22NqgQ@mail.gmail.com> <1f45ae2e-aa17-f485-2f33-7ba774f6197d@amazon.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox