postgresql/src/backend
Tom Lane c73748b68a Ensure ParseTzFile() closes the input file after failing.
We hadn't noticed this because (a) few people feed invalid
timezone abbreviation files to the server, and (b) in typical
scenarios guc.c would throw ereport(ERROR) and then transaction
abort handling would silently clean up the leaked file reference.
However, it was possible to observe file leakage warnings if one
breaks an already-active abbreviation file, because guc.c does
not throw ERROR when loading supposedly-validated settings during
session start or SIGHUP processing.

Report and fix by Kyotaro Horiguchi (cosmetic adjustments by me)

Discussion: https://postgr.es/m/20220530.173740.748502979257582392.horikyota.ntt@gmail.com
2022-05-31 14:47:44 -04:00
..
access Fix control file update done in restartpoints still running after promotion 2022-05-16 11:26:26 +09:00
bootstrap Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
catalog Make relation-enumerating operations be security-restricted operations. 2022-05-09 08:35:12 -07:00
commands Fix DDL deparse of CREATE OPERATOR CLASS 2022-05-20 18:52:55 +02:00
executor Revert applying column aliases to the output of whole-row Vars. 2022-03-17 18:18:05 -04:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Back-patch LLVM 14 API changes. 2022-03-16 11:41:13 +13:00
lib Fix typo in comment 2021-04-20 14:36:41 +02:00
libpq Remove misguided SSL key file ownership check in libpq. 2022-05-26 14:14:05 -04:00
main Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nodes Fix assorted missing logic for GroupingFunc nodes. 2022-03-21 17:44:29 -04:00
optimizer Make pull_var_clause() handle GroupingFuncs exactly like Aggrefs. 2022-05-12 11:31:46 -04:00
parser Check column list length in XMLTABLE/JSON_TABLE alias 2022-05-18 20:28:31 +02:00
partitioning Avoid using ambiguous word "non-negative" in error messages. 2021-07-28 01:21:52 +09:00
po Translation updates 2022-05-09 12:27:22 +02:00
port Reject huge_pages=on if shared_memory_type=sysv. 2021-10-26 13:04:40 +13:00
postmaster Fix waiting in RegisterSyncRequest(). 2022-03-16 15:37:15 +13:00
regex Make pg_regexec() robust against out-of-range search_start. 2021-09-11 15:19:49 -04:00
replication Fix the logical replication timeout during large transactions. 2022-05-11 10:41:24 +05:30
rewrite Fix rewriter to set hasModifyingCTE correctly on rewritten queries. 2021-09-08 12:05:43 -04:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Build inherited extended stats on partitioned tables 2022-01-15 19:14:00 +01:00
storage Repurpose PROC_COPYABLE_FLAGS as PROC_XMIN_FLAGS 2022-05-19 16:20:32 +02:00
tcop Fix DDL deparse of CREATE OPERATOR CLASS 2022-05-20 18:52:55 +02:00
tsearch Don't leak compiled regex(es) when an ispell cache entry is dropped. 2021-03-18 21:44:43 -04:00
utils Ensure ParseTzFile() closes the input file after failing. 2022-05-31 14:47:44 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk Translation updates 2020-09-14 13:14:53 +02:00