aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/variable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-01-21 04:38:46 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-01-21 04:38:46 +0000
commit7da4e7ac6a0680210a2df8b711d8c765d2014e06 (patch)
tree0860eea30677d56e853c106c50dee2f66e80ba96 /src/backend/commands/variable.c
parente05a95bc00e1cd2ba763b433843918fc5f2e155e (diff)
downloadpostgresql-7da4e7ac6a0680210a2df8b711d8c765d2014e06.tar.gz
postgresql-7da4e7ac6a0680210a2df8b711d8c765d2014e06.zip
Repair longstanding bug in slru/clog logic: it is possible for two backends
to try to create a log segment file concurrently, but the code erroneously specified O_EXCL to open(), resulting in a needless failure. Before 7.4, it was even a PANIC condition :-(. Correct code is actually simpler than what we had, because we can just say O_CREAT to start with and not need a second open() call. I believe this accounts for several recent reports of hard-to-reproduce "could not create file ...: File exists" errors in both pg_clog and pg_subtrans.
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions