Improve error message for tts_(virtual|minimal)_is_current_xact_tuple

Discussion: https://postgr.es/m/CALT9ZEHNeagO5PLb4Nv9J_ZaCtp%2BArdVmbSLc0RHUzx_RPAa4w%40mail.gmail.com
Author: Pavel Borisov
This commit is contained in:
Alexander Korotkov 2024-03-26 01:55:22 +02:00
parent 10baee0c95
commit 41d3780d3d
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ tts_virtual_is_current_xact_tuple(TupleTableSlot *slot)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("don't have a storage tuple in this context")));
errmsg("don't have transaction information for this type of tuple")));
return false; /* silence compiler warnings */
}
@ -577,7 +577,7 @@ tts_minimal_is_current_xact_tuple(TupleTableSlot *slot)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("don't have a storage tuple in this context")));
errmsg("don't have transaction information for this type of tuple")));
return false; /* silence compiler warnings */
}