aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-05-14 08:27:59 +0900
committerMichael Paquier <michael@paquier.xyz>2022-05-14 08:27:59 +0900
commitfcab82a2d79b4533cfdc8e8d5e00dbdf6830d63a (patch)
tree055690470529d469344b97d4b8a5164713f859d7 /src
parentc4f113e8fef900e9e7e7c77a3a21db1535e5be72 (diff)
downloadpostgresql-fcab82a2d79b4533cfdc8e8d5e00dbdf6830d63a.tar.gz
postgresql-fcab82a2d79b4533cfdc8e8d5e00dbdf6830d63a.zip
Fix comment in pg_proc.c
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/catalog/pg_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/catalog/pg_proc.c b/src/backend/catalog/pg_proc.c
index d82221fdb8f..9644336dedc 100644
--- a/src/backend/catalog/pg_proc.c
+++ b/src/backend/catalog/pg_proc.c
@@ -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);