Skip to main content

set_no_deferrable_on_read

Function set_no_deferrable_on_read 

Source
pub fn set_no_deferrable_on_read(value: bool)
Expand description

Configure whether read transactions on Postgres should omit DEFERRABLE.

When true, Read::begin issues SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, READ ONLY (no DEFERRABLE) so the transaction starts immediately rather than waiting for a safe serializable snapshot. Default: false. Call this once at startup based on the operator’s chosen configuration.