mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-06 13:47:01 +02:00
Back-patch "Add parent table name in an error in reorderbuffer.c."
This was originally done in commit 5e77625b26
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
This commit is contained in:
parent
3c8c49945d
commit
4048fc4581
@ -3076,8 +3076,8 @@ ReorderBufferToastReplace(ReorderBuffer *rb, ReorderBufferTXN *txn,
|
|||||||
|
|
||||||
toast_rel = RelationIdGetRelation(relation->rd_rel->reltoastrelid);
|
toast_rel = RelationIdGetRelation(relation->rd_rel->reltoastrelid);
|
||||||
if (!RelationIsValid(toast_rel))
|
if (!RelationIsValid(toast_rel))
|
||||||
elog(ERROR, "could not open relation with OID %u",
|
elog(ERROR, "could not open toast relation with OID %u (base relation \"%s\")",
|
||||||
relation->rd_rel->reltoastrelid);
|
relation->rd_rel->reltoastrelid, RelationGetRelationName(relation));
|
||||||
|
|
||||||
toast_desc = RelationGetDescr(toast_rel);
|
toast_desc = RelationGetDescr(toast_rel);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user