exit_on_error
(boolean
)
on인 경우 어떤 에러가 발생했든 현재 세션이 중단된다. 기본적으로 이것은 off로 설정되고 FATAL 에러 시 세션이 중단된다.
restart_after_crash
(boolean
)
기본값인 on으로 설정되면 백엔드 충돌 후 PostgreSQL이 자동으로 재초기화된다. 이 값을 계속 on으로 설정하는 것은 일반적으로 데이터베이스의 가용성을 최대화하는 최고의 방법이다. 그러나, 클러스터웨어에서 PostgreSQL를 호출하는 경우처럼 경우에 따라 재시작을 비활성화해서 클러스터웨어가 제어를 획득하고 적절하다고 생각되는 조치를 취할 수 있게 하는 점이 유용하다.
data_sync_retry
(boolean
)
When set to off, which is the default, PostgreSQL will raise a PANIC-level error on failure to flush modified data files to the file system. This causes the database server to crash. This parameter can only be set at server start.
On some operating systems, the status of data in the kernel's page cache is unknown after a write-back failure. In some cases it might have been entirely forgotten, making it unsafe to retry; the second attempt may be reported as successful, when in fact the data has been lost. In these circumstances, the only way to avoid data loss is to recover from the WAL after any failure is reported, preferably after investigating the root cause of the failure and replacing any faulty hardware.
If set to on, PostgreSQL will instead report an error but continue to run so that the data flushing operation can be retried in a later checkpoint. Only set it to on after investigating the operating system's treatment of buffered data in case of write-back failure.