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
This commit is contained in:
parent
c4f113e8fe
commit
fcab82a2d7
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user