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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy