Skip to content

Commit 23469b8

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 a73a367 commit 23469b8

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

33493349
toast_rel = RelationIdGetRelation(relation->rd_rel->reltoastrelid);
33503350
if (!RelationIsValid(toast_rel))
3351-
elog(ERROR, "could not open relation with OID %u",
3352-
relation->rd_rel->reltoastrelid);
3351+
elog(ERROR, "could not open toast relation with OID %u (base relation \"%s\")",
3352+
relation->rd_rel->reltoastrelid, RelationGetRelationName(relation));
33533353

33543354
toast_desc = RelationGetDescr(toast_rel);
33553355

0 commit comments

Comments
 (0)