Skip to content

Commit d61cdad

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 e00d45f commit d61cdad

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

30583058
toast_rel = RelationIdGetRelation(relation->rd_rel->reltoastrelid);
30593059
if (!RelationIsValid(toast_rel))
3060-
elog(ERROR, "could not open relation with OID %u",
3061-
relation->rd_rel->reltoastrelid);
3060+
elog(ERROR, "could not open toast relation with OID %u (base relation \"%s\")",
3061+
relation->rd_rel->reltoastrelid, RelationGetRelationName(relation));
30623062

30633063
toast_desc = RelationGetDescr(toast_rel);
30643064

0 commit comments

Comments
 (0)