postgresql/contrib/adminpack
Tom Lane b4570d33aa 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
2020-03-16 21:05:52 -04:00
..
expected Add pg_file_sync() to adminpack extension. 2020-01-24 20:42:52 +09:00
sql Add pg_file_sync() to adminpack extension. 2020-01-24 20:42:52 +09:00
.gitignore adminpack: Add test suite 2017-09-14 22:22:59 -04:00
Makefile Add pg_file_sync() to adminpack extension. 2020-01-24 20:42:52 +09:00
adminpack--1.0--1.1.sql adminpack: Revoke EXECUTE on pg_logfile_rotate() 2018-05-07 10:10:33 -04:00
adminpack--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
adminpack--1.1--2.0.sql adminpack: Revoke EXECUTE on pg_logfile_rotate() 2018-05-07 10:10:33 -04:00
adminpack--2.0--2.1.sql Add pg_file_sync() to adminpack extension. 2020-01-24 20:42:52 +09:00
adminpack.c Avoid holding a directory FD open across assorted SRF calls. 2020-03-16 21:05:52 -04:00
adminpack.control Add pg_file_sync() to adminpack extension. 2020-01-24 20:42:52 +09:00