Re: relation OID in ReorderBufferToastReplace error message
Jeremy Schneider <schnjere@amazon.com>
From: Jeremy Schneider <schnjere@amazon.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL-development <pgsql-hackers@postgresql.org>, "Drouvot, Bertrand" <bdrouvot@amazon.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>, Andres Freund <andres@anarazel.de>
Date: 2021-09-21T20:47:54Z
Lists: pgsql-hackers
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
Commits
-
Back-patch "Add parent table name in an error in reorderbuffer.c."
- 4d3147070545 9.6.24 landed
- 13e52d7c5533 10.19 landed
- d61cdad0b524 11.14 landed
- 4048fc458175 12.9 landed
- 23469b867ac0 13.5 landed
- 9e84f6a72133 14.1 landed
-
Add parent table name in an error in reorderbuffer.c.
- 5e77625b260a 15.0 landed
-
Fix reorder buffer memory accounting for toast changes.
- df3640e5293d 15.0 cited
-
Add logical change details to logical replication worker errcontext.
- abc0910e2e0a 15.0 cited
-
Fix toast rewrites in logical decoding.
- 29b590547028 15.0 cited
-
Add error codes to some corruption log messages
- fd6ec93bf890 13.0 cited