diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-03-16 21:05:29 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-03-16 21:05:29 -0400 |
commit | da254148f4deff3cc5f4a5003e5b3c026c04f4a9 (patch) | |
tree | 1c910db271cc8300ce4f19cc7f856b4e795f572f /src/backend/access/gist/gistget.c | |
parent | 5c3a70020a9e74a69b3ed0ded0de48bdebbbe8ed (diff) | |
download | postgresql-da254148f4deff3cc5f4a5003e5b3c026c04f4a9.tar.gz postgresql-da254148f4deff3cc5f4a5003e5b3c026c04f4a9.zip |
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
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions