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
pull/83/head
Michael Paquier 4 years ago
parent c4f113e8fe
commit fcab82a2d7
  1. 2
      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);

Loading…
Cancel
Save