Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fcab82a

Browse files
committed
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
1 parent c4f113e commit fcab82a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/pg_proc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ ProcedureCreate(const char *procedureName,
710710
AtEOXact_GUC(true, save_nestlevel);
711711
}
712712

713-
/* ensure that stats are dropped if transaction commits */
713+
/* ensure that stats are dropped if transaction aborts */
714714
if (!is_update)
715715
pgstat_create_function(retval);
716716

0 commit comments

Comments
 (0)