Update comment in portal.h.
authorEtsuro Fujita <[email protected]>
Thu, 1 Aug 2024 08:45:00 +0000 (17:45 +0900)
committerEtsuro Fujita <[email protected]>
Thu, 1 Aug 2024 08:45:00 +0000 (17:45 +0900)
We store tuples into the portal's tuple store for a PORTAL_ONE_MOD_WITH
query as well.

Back-patch to all supported branches.

Reviewed by Andy Fan.

Discussion: https://postgr.es/m/CAPmGK14HVYBZYZtHabjeCd-e31VT%3Dwx6rQNq8QfehywLcpZ2Hw%40mail.gmail.com

src/include/utils/portal.h

index 11419faecaa8ace725426c074a7b0133c96112dd..29f49829f25dbc5cd14a011a24c7e289e999d9ae 100644 (file)
@@ -170,9 +170,9 @@ typedef struct PortalData
    Snapshot    portalSnapshot; /* active snapshot, or NULL if none */
 
    /*
-    * Where we store tuples for a held cursor or a PORTAL_ONE_RETURNING or
-    * PORTAL_UTIL_SELECT query.  (A cursor held past the end of its
-    * transaction no longer has any active executor state.)
+    * Where we store tuples for a held cursor or a PORTAL_ONE_RETURNING,
+    * PORTAL_ONE_MOD_WITH, or PORTAL_UTIL_SELECT query.  (A cursor held past
+    * the end of its transaction no longer has any active executor state.)
     */
    Tuplestorestate *holdStore; /* store for holdable cursors */
    MemoryContext holdContext;  /* memory containing holdStore */