Skip to content

Commit 5e77625

Browse files
author
Amit Kapila
committed
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
1 parent dd94c28 commit 5e77625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/logical/reorderbuffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4633,8 +4633,8 @@ ReorderBufferToastReplace(ReorderBuffer *rb, ReorderBufferTXN *txn,
46334633

46344634
toast_rel = RelationIdGetRelation(relation->rd_rel->reltoastrelid);
46354635
if (!RelationIsValid(toast_rel))
4636-
elog(ERROR, "could not open relation with OID %u",
4637-
relation->rd_rel->reltoastrelid);
4636+
elog(ERROR, "could not open toast relation with OID %u (base relation \"%s\")",
4637+
relation->rd_rel->reltoastrelid, RelationGetRelationName(relation));
46384638

46394639
toast_desc = RelationGetDescr(toast_rel);
46404640

0 commit comments

Comments
 (0)