Table of Contents

Class PostgresStalePositionReasonCodes

Namespace
Excalibur.Cdc.Postgres
Assembly
Excalibur.Cdc.Postgres.dll

Provides standardized reason codes for Postgres CDC stale position scenarios.

public static class PostgresStalePositionReasonCodes
Inheritance
PostgresStalePositionReasonCodes
Inherited Members

Fields

LogicalDecodingError

A logical decoding error occurred while processing changes.

public const string LogicalDecodingError = "LOGICAL_DECODING_ERROR"

Field Value

string

PublicationInvalid

The publication no longer exists or has been modified.

public const string PublicationInvalid = "PUBLICATION_INVALID"

Field Value

string

ReplicationSlotInvalid

The replication slot is invalid or has been dropped.

public const string ReplicationSlotInvalid = "REPLICATION_SLOT_INVALID"

Field Value

string

ReplicationStreamDisconnected

The connection to the replication stream was lost unexpectedly.

public const string ReplicationStreamDisconnected = "REPLICATION_STREAM_DISCONNECTED"

Field Value

string

Unknown

The reason for the stale position could not be determined.

public const string Unknown = "UNKNOWN"

Field Value

string

WalPositionStale

The WAL position is no longer available due to segment removal.

public const string WalPositionStale = "WAL_POSITION_STALE"

Field Value

string

Methods

FromErrorMessage(string?)

Determines the reason code from a Postgres error message pattern.

public static string FromErrorMessage(string? errorMessage)

Parameters

errorMessage string

Returns

string

FromSqlState(string?)

Determines the reason code from a Postgres SQLSTATE code.

public static string FromSqlState(string? sqlState)

Parameters

sqlState string

Returns

string