Class PhysicalReplicationSlot
Wraps a replication slot that uses physical replication.
Inherited Members
Namespace: Npgsql.Replication
Assembly: Npgsql.dll
Syntax
public class PhysicalReplicationSlot : ReplicationSlot
Constructors
| Improve this Doc View SourcePhysicalReplicationSlot(string, NpgsqlLogSequenceNumber?, uint?)
Creates a new PhysicalReplicationSlot instance.
Declaration
public PhysicalReplicationSlot(string slotName, NpgsqlLogSequenceNumber? restartLsn = null, uint? restartTimeline = null)
Parameters
Type | Name | Description |
---|---|---|
string | slotName | The name of the existing replication slot |
NpgsqlLogSequenceNumber? | restartLsn | The replication slot's |
uint? | restartTimeline | The timeline ID associated to |
Remarks
Create a PhysicalReplicationSlot instance with this constructor to wrap an existing PostgreSQL replication slot that has been initialized for physical replication.
Properties
| Improve this Doc View SourceRestartLsn
The replication slot's restart_lsn
.
Declaration
public NpgsqlLogSequenceNumber? RestartLsn { get; }
Property Value
Type | Description |
---|---|
NpgsqlLogSequenceNumber? |
RestartTimeline
The timeline ID associated to restart_lsn
, following the current timeline history.
Declaration
public uint? RestartTimeline { get; }
Property Value
Type | Description |
---|---|
uint? |