mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-27 22:52:07 +02:00
43c9790868
Some of our src/bin tools read the control file without any kind of interlocking against concurrent writes from the server. At least ext4 and ntfs can expose partially modified contents when you do that. For now, we'll try to tolerate this by retrying up to 10 times if the checksum doesn't match, until we get two reads in a row with the same bad checksum. This is not guaranteed to reach the right conclusion, but it seems very likely to. Thanks to Tom Lane for this suggestion. Various ideas for interlocking or atomicity were considered too complicated, unportable or expensive given the lack of field reports, but remain open for future reconsideration. Back-patch as far as 12. It doesn't seem like a good idea to put a heuristic change for a very rare problem into the final release of 11. Reviewed-by: Anton A. Melnikov <aamelnikov@inbox.ru> Reviewed-by: David Steele <david@pgmasters.net> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/20221123014224.xisi44byq3cf5psi%40awork3.anarazel.de |
||
---|---|---|
.. | ||
unicode | ||
.gitignore | ||
base64.c | ||
config_info.c | ||
controldata_utils.c | ||
d2s_full_table.h | ||
d2s_intrinsics.h | ||
d2s.c | ||
digit_table.h | ||
exec.c | ||
f2s.c | ||
fe_memutils.c | ||
file_perm.c | ||
file_utils.c | ||
ip.c | ||
keywords.c | ||
kwlookup.c | ||
link-canary.c | ||
logging.c | ||
Makefile | ||
md5.c | ||
pg_lzcompress.c | ||
pgfnames.c | ||
psprintf.c | ||
relpath.c | ||
restricted_token.c | ||
rmtree.c | ||
ryu_common.h | ||
saslprep.c | ||
scram-common.c | ||
sha2_openssl.c | ||
sha2.c | ||
string.c | ||
unicode_norm.c | ||
username.c | ||
wait_error.c |