git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1137581) | patch
Avoid holding a directory FD open across assorted SRF calls.
2020年3月17日 01:05:28 +0000 (21:05 -0400)
2020年3月17日 01:05:52 +0000 (21:05 -0400)
commit b4570d33aa045df330bb325ba8a2cbf02266a555
Avoid holding a directory FD open across assorted SRF calls.

This extends the fixes made in commit 085b6b667 to other SRFs with the
same bug, namely pg_logdir_ls(), pgrowlocks(), pg_timezone_names(),
pg_ls_dir(), and pg_tablespace_databases().

Also adjust various comments and documentation to warn against
expecting to clean up resources during a ValuePerCall SRF's final
call.

Back-patch to all supported branches, since these functions were
all born broken.

Justin Pryzby, with cosmetic tweaks by me

Discussion: https://postgr.es/m/20200308173103.GC1357@telsasoft.com
contrib/adminpack/adminpack.c diff | blob | blame | history
contrib/pgrowlocks/pgrowlocks.c diff | blob | blame | history
doc/src/sgml/xfunc.sgml diff | blob | blame | history
src/backend/utils/adt/datetime.c diff | blob | blame | history
src/backend/utils/adt/genfile.c diff | blob | blame | history
src/backend/utils/adt/misc.c diff | blob | blame | history
src/backend/utils/fmgr/README diff | blob | blame | history
src/include/funcapi.h diff | blob | blame | history
src/test/regress/expected/misc_functions.out diff | blob | blame | history
src/test/regress/sql/misc_functions.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /