Enum TargetSessionAttributes
Specifies server type preference.
Namespace: Npgsql
Assembly: Npgsql.dll
Syntax
public enum TargetSessionAttributes : byte
Fields
Name | Description |
---|---|
Any | Any successful connection is acceptable. |
PreferPrimary | First try to find a primary server, but if none of the listed hosts is a primary server, try again in Any mode. |
PreferStandby | First try to find a standby server, but if none of the listed hosts is a standby server, try again in Any mode. |
Primary | Server must not be in hot standby mode. |
ReadOnly | Session must not accept read-write transactions by default (the converse). |
ReadWrite | Session must accept read-write transactions by default (that is, the server must not be in hot standby mode and the
|
Standby | Server must be in hot standby mode. |