Class PostgresStalePositionReasonCodes
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
PublicationInvalid
The publication no longer exists or has been modified.
public const string PublicationInvalid = "PUBLICATION_INVALID"
Field Value
ReplicationSlotInvalid
The replication slot is invalid or has been dropped.
public const string ReplicationSlotInvalid = "REPLICATION_SLOT_INVALID"
Field Value
ReplicationStreamDisconnected
The connection to the replication stream was lost unexpectedly.
public const string ReplicationStreamDisconnected = "REPLICATION_STREAM_DISCONNECTED"
Field Value
Unknown
The reason for the stale position could not be determined.
public const string Unknown = "UNKNOWN"
Field Value
WalPositionStale
The WAL position is no longer available due to segment removal.
public const string WalPositionStale = "WAL_POSITION_STALE"
Field Value
Methods
FromErrorMessage(string?)
Determines the reason code from a Postgres error message pattern.
public static string FromErrorMessage(string? errorMessage)
Parameters
errorMessagestring
Returns
FromSqlState(string?)
Determines the reason code from a Postgres SQLSTATE code.
public static string FromSqlState(string? sqlState)
Parameters
sqlStatestring