Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Improve error message for tts_(virtual|minimal)_is_current_xact_tuple
authorAlexander Korotkov <akorotkov@postgresql.org>
Mon, 25 Mar 2024 23:55:22 +0000 (01:55 +0200)
committerAlexander Korotkov <akorotkov@postgresql.org>
Mon, 25 Mar 2024 23:55:22 +0000 (01:55 +0200)
Discussion: https://postgr.es/m/CALT9ZEHNeagO5PLb4Nv9J_ZaCtp%2BArdVmbSLc0RHUzx_RPAa4w%40mail.gmail.com
Author: Pavel Borisov

src/backend/executor/execTuples.c

index b547792240486dc20330ad8b140239d428ac0319..00dc3396156c5add54524fe950307bda3561f835 100644 (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 */
 }