diff options
author | Tom Lane | 2020-03-17 01:05:28 +0000 |
---|---|---|
committer | Tom Lane | 2020-03-17 01:05:52 +0000 |
commit | b4570d33aa045df330bb325ba8a2cbf02266a555 (patch) | |
tree | 4e7ebfee102862d095bfa9eb0dede58a4cca471f /src/backend/utils/adt/jsonfuncs.c | |
parent | 113758155c11cf993ca0ecee8856e300a2525a30 (diff) |
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/[email protected]
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions