aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2016-09-08 16:51:09 -0700
committerAndres Freund <andres@anarazel.de>2016-09-08 16:52:13 -0700
commit08fdfe7a8a2f7516172a0d89b678a1b6c21c5afb (patch)
treece9fdb8977d40f67a097b7611b3322889be5a70f /src/backend/access/gist/gist.c
parent0499bd26915f2b4119560142855db3df59d1b8a4 (diff)
downloadpostgresql-08fdfe7a8a2f7516172a0d89b678a1b6c21c5afb.tar.gz
postgresql-08fdfe7a8a2f7516172a0d89b678a1b6c21c5afb.zip
Fix mdtruncate() to close fd.c handle of deleted segments.
mdtruncate() forgot to FileClose() a segment's mdfd_vfd, when deleting it. That lead to a fd.c handle to a truncated file being kept open until backend exit. The issue appears to have been introduced way back in 1a5c450f3024ac5, before that the handle was closed inside FileUnlink(). The impact of this bug is limited - only VACUUM and ON COMMIT TRUNCATE for temporary tables, truncate files in place (i.e. TRUNCATE itself is not affected), and the relation has to be bigger than 1GB. The consequences of a leaked fd.c handle aren't severe either. Discussion: <20160908220748.oqh37ukwqqncbl3n@alap3.anarazel.de> Backpatch: all supported releases
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions