aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2023-10-16 10:43:47 +1300
committerThomas Munro <tmunro@postgresql.org>2023-10-16 10:45:05 +1300
commit2371432cd6b93415ef99e7ef35598f4f85436163 (patch)
tree6b12b015a913a4df797d54cd9920ee337dabd75a /src/tutorial/funcs.c
parentbf1c21c4fad033414a99d6205118fbc4d75efa62 (diff)
downloadpostgresql-2371432cd6b93415ef99e7ef35598f4f85436163.tar.gz
postgresql-2371432cd6b93415ef99e7ef35598f4f85436163.zip
Acquire ControlFileLock in relevant SQL functions.
Commit dc7d70ea added functions that read the control file, but didn't acquire ControlFileLock. With unlucky timing, file systems that have weak interlocking like ext4 and ntfs could expose partially overwritten contents, and the checksum would fail. Back-patch to all supported releases. Reviewed-by: David Steele <david@pgmasters.net> Reviewed-by: Anton A. Melnikov <aamelnikov@inbox.ru> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/20221123014224.xisi44byq3cf5psi%40awork3.anarazel.de
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions