pgsql: Fix typo in function header comment.

2025-10-07 Thread Amit Kapila
Fix typo in function header comment. Reported-by: Robert Haas Discussion: https://postgr.es/m/ca+tgmozyh_nw-2j_fi9y6zavrpn+w1asofnm7rus2q-ztkc...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/035b09131daab84f2ed9a4a3f766bf4781fd5cbf Modified File

pgsql: Add stats_reset to pg_stat_user_functions

2025-10-07 Thread Michael Paquier
Add stats_reset to pg_stat_user_functions It is possible to call pg_stat_reset_single_function_counters() for a single function, but the reset time was missing the system view showing its statistics. Like all the fields of pg_stat_user_functions, the GUC track_functions needs to be enabled to sho

pgsql: Fix compile of src/tutorial/funcs.c

2025-10-07 Thread Álvaro Herrera
Fix compile of src/tutorial/funcs.c I broke this with recent #include removals. Fix by adding an explicit Reported-by: Devrim Gündüz Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg/co

pgsql: Fix Coverity issues reported in commit 25a30bbd423.

2025-10-07 Thread Tatsuo Ishii
Fix Coverity issues reported in commit 25a30bbd423. Fix several issues pointed out by Coverity (reported by Tome Lane). - In row_is_in_frame(), return value of window_gettupleslot() was not checked. - WinGetFuncArgInPartition() tried to derefference "isout" pointer even if it could be NULL i