You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move functions related to temporary file management to tempfile.c
Like in the few previous commits, the idea is that only functions
related to the Virtual File Descriptor abstraction remain in fd.c.
This commit moves functions related to creating and deleting temporary
files and managing temporary dirs in tablespaces to a separate source
file.
This mostly a mechanical move. Note the split of the end-of-xact and
process-exit functions, however. tempfile.c now registers the
process-exit callback, but it relies on the CleanupTempFiles()
function provided by fd.c to do the work. CleanupTempFiles() now only
cleans up the temporary Files, it does not try to close AllocateDesc
handles. They should've been closed by end-of-xact cleanup already,
and if not, they will be closed at the impending process exit anyway.
Resetting the temporary tablespace list is moved to a new
AtEOXact_TempFiles() function, which is called from
Commit/AbortTransaction(), but not from all the cleanup routines where
AtEOXact_files() is called. Having a temporary tablespace list
requires an open transaction, so it doesn't need to be called at
non-transaction cleanup.
0 commit comments