TargetSessionAttrs
Which kind of server a connection settles for when several are listed, in libpq's vocabulary and with its meaning.
A server's kind is read from what it reports at login - in_hot_standby, and for the two read/write modes default_transaction_read_only too. A server that is not the kind asked for is logged out of, and the next one in the list is tried.
Entries
A server whose sessions accept writes by default: not in hot standby, and default_transaction_read_only off.
The converse of READ_WRITE: a server in hot standby, or one with default_transaction_read_only on.
A server in hot standby where the list has one; where it has none, a second pass takes any server.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.