Skip to content

Commit 4d31470

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 d581960 commit 4d31470

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

30443044
toast_rel = RelationIdGetRelation(relation->rd_rel->reltoastrelid);
30453045
if (!RelationIsValid(toast_rel))
3046-
elog(ERROR, "could not open relation with OID %u",
3047-
relation->rd_rel->reltoastrelid);
3046+
elog(ERROR, "could not open toast relation with OID %u (base relation \"%s\")",
3047+
relation->rd_rel->reltoastrelid, RelationGetRelationName(relation));
30483048

30493049
toast_desc = RelationGetDescr(toast_rel);
30503050

0 commit comments

Comments
 (0)