aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablespace.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-05-07 16:19:42 +1200
committerThomas Munro <tmunro@postgresql.org>2022-05-07 16:32:10 +1200
commitb74e94dc27fdbb13954f230b1d1298430afa6c0c (patch)
treee67f872e3a7ce3cd62480978831c541529d36e45 /src/backend/commands/tablespace.c
parent701d918a426b394620ce4d046533f77262c70829 (diff)
downloadpostgresql-b74e94dc27fdbb13954f230b1d1298430afa6c0c.tar.gz
postgresql-b74e94dc27fdbb13954f230b1d1298430afa6c0c.zip
Rethink PROCSIGNAL_BARRIER_SMGRRELEASE.
With sufficiently bad luck, it was possible for IssuePendingWritebacks() to reopen a file after we'd processed PROCSIGNAL_BARRIER_SMGRRELEASE and before the file was unlinked by some other backend. That left a small hole in commit 4eb21763's plan to fix all spurious errors from DROP TABLESPACE and similar on Windows. Fix by closing md.c's segments, instead of just closing fd.c's descriptors, and then teaching smgrwriteback() not to open files that aren't already open. Reported-by: Andres Freund <andres@anarazel.de> Reviewed-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://postgr.es/m/20220209220004.kb3dgtn2x2k2gtdm%40alap3.anarazel.de
Diffstat (limited to 'src/backend/commands/tablespace.c')
0 files changed, 0 insertions, 0 deletions