aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2021-09-22 07:42:52 +0530
committerAmit Kapila <akapila@postgresql.org>2021-09-22 07:42:52 +0530
commit5e77625b260a781316bb94ea9750dc66c50152bf (patch)
tree5d7ed1d060dc804f11796b743fdd2143abf9bd2b /src
parentdd94c2852e6e3a246b9fd64bf2d9c7fc01020905 (diff)
downloadpostgresql-5e77625b260a781316bb94ea9750dc66c50152bf.tar.gz
postgresql-5e77625b260a781316bb94ea9750dc66c50152bf.zip
Add parent table name in an error in reorderbuffer.c.
This can help in troubleshooting the cause of a particular error that can occur during decoding. Author: Jeremy Schneider Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/808ed65b-994c-915a-361c-577f088b837f@amazon.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/reorderbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index 1b330dab9ea..46e66608cf0 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -4633,8 +4633,8 @@ ReorderBufferToastReplace(ReorderBuffer *rb, ReorderBufferTXN *txn,
toast_rel = RelationIdGetRelation(relation->rd_rel->reltoastrelid);
if (!RelationIsValid(toast_rel))
- elog(ERROR, "could not open relation with OID %u",
- relation->rd_rel->reltoastrelid);
+ elog(ERROR, "could not open toast relation with OID %u (base relation \"%s\")",
+ relation->rd_rel->reltoastrelid, RelationGetRelationName(relation));
toast_desc = RelationGetDescr(toast_rel);