mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Recursively fsync() the data directory after a crash.
Otherwise, if there's another crash, some writes from after the first crash might make it to disk while writes from before the crash fail to make it to disk. This could lead to data corruption. Back-patch to all supported versions. Abhijit Menon-Sen, reviewed by Andres Freund and slightly revised by me.
This commit is contained in:
@ -377,6 +377,7 @@ int trace_recovery_messages = LOG;
|
||||
|
||||
int num_temp_buffers = 1000;
|
||||
|
||||
char *data_directory;
|
||||
char *ConfigFileName;
|
||||
char *HbaFileName;
|
||||
char *IdentFileName;
|
||||
@ -414,7 +415,6 @@ static char *timezone_string;
|
||||
static char *log_timezone_string;
|
||||
static char *timezone_abbreviations_string;
|
||||
static char *XactIsoLevel_string;
|
||||
static char *data_directory;
|
||||
static char *custom_variable_classes;
|
||||
static int max_function_args;
|
||||
static int max_index_keys;
|
||||
|
Reference in New Issue
Block a user