Search Results for

    Show / Hide Table of Contents

    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 default_transaction_read_only parameter must be off).

    Standby

    Server must be in hot standby mode.

    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team