Skip to content

Commit 4048fc4

Browse files
author
Amit Kapila
committed
Back-patch "Add parent table name in an error in reorderbuffer.c."
This was originally done in commit 5e77625 for 15 only, as a troubleshooting aid but multiple people showed interest in back-patching this. Author: Jeremy Schneider Reviewed-by: Amit Kapila Backpatch-through: 9.6 Discussion: https://postgr.es/m/808ed65b-994c-915a-361c-577f088b837f@amazon.com
1 parent 3c8c499 commit 4048fc4

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
@@ -3076,8 +3076,8 @@ ReorderBufferToastReplace(ReorderBuffer *rb, ReorderBufferTXN *txn,
30763076

30773077
toast_rel = RelationIdGetRelation(relation->rd_rel->reltoastrelid);
30783078
if (!RelationIsValid(toast_rel))
3079-
elog(ERROR, "could not open relation with OID %u",
3080-
relation->rd_rel->reltoastrelid);
3079+
elog(ERROR, "could not open toast relation with OID %u (base relation \"%s\")",
3080+
relation->rd_rel->reltoastrelid, RelationGetRelationName(relation));
30813081

30823082
toast_desc = RelationGetDescr(toast_rel);
30833083

0 commit comments

Comments
 (0)