Fix comment in pg_proc.c
authorMichael Paquier <michael@paquier.xyz>
Fri, 13 May 2022 23:27:59 +0000 (08:27 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 13 May 2022 23:27:59 +0000 (08:27 +0900)
pgstat_create_function() creates stats for a function in a transactional
fashion, so the stats would be dropped if transaction creating the
function is aborted, not committed.

Author: Amul Sul
Discussion: https://postgr.es/m/CAAJ_b97x1T3xgAMWNj4w7kSgN0nTuG-vLrQJ4NB-dsNr0Kudxw@mail.gmail.com

src/backend/catalog/pg_proc.c

index d82221fdb8f6151ba20f031fd3c9dd1b87b6c65b..9644336dedcbb6637a326a3c05db3c36fc02155b 100644 (file)
@@ -710,7 +710,7 @@ ProcedureCreate(const char *procedureName,
                        AtEOXact_GUC(true, save_nestlevel);
        }
 
-       /* ensure that stats are dropped if transaction commits */
+       /* ensure that stats are dropped if transaction aborts */
        if (!is_update)
                pgstat_create_function(retval);