From 41d3780d3d29acd7e0a7a6922f2757243e9186d0 Mon Sep 17 00:00:00 2001 From: Alexander Korotkov Date: Tue, 26 Mar 2024 01:55:22 +0200 Subject: [PATCH] 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 --- src/backend/executor/execTuples.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c index b547792240..00dc339615 100644 --- a/src/backend/executor/execTuples.c +++ b/src/backend/executor/execTuples.c @@ -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 */ }