Class PgOutputReplicationSlot
Acts as a proxy for a logical replication slot initialized for for the logical streaming replication protocol (pgoutput logical decoding plugin).
Inherited Members
Namespace: Npgsql.Replication.PgOutput
Assembly: Npgsql.dll
Syntax
public class PgOutputReplicationSlot : LogicalReplicationSlot
Constructors
PgOutputReplicationSlot(PgOutputReplicationSlot)
Creates a new PgOutputReplicationSlot instance.
Declaration
protected PgOutputReplicationSlot(PgOutputReplicationSlot slot)
Parameters
Type | Name | Description |
---|---|---|
PgOutputReplicationSlot | slot | The PgOutputReplicationSlot from which the new instance should be initialized |
Remarks
This constructor is intended to be consumed by plugins sitting on top of PgOutputReplicationSlot
PgOutputReplicationSlot(ReplicationSlotOptions)
Creates a new PgOutputReplicationSlot instance.
Declaration
public PgOutputReplicationSlot(ReplicationSlotOptions options)
Parameters
Type | Name | Description |
---|---|---|
ReplicationSlotOptions | options | The ReplicationSlotOptions representing the existing replication slot |
Remarks
Create a PgOutputReplicationSlot instance with this constructor to wrap an existing PostgreSQL replication slot that has been initialized for the pgoutput logical decoding plugin.
PgOutputReplicationSlot(String)
Creates a new PgOutputReplicationSlot instance.
Declaration
public PgOutputReplicationSlot(string slotName)
Parameters
Type | Name | Description |
---|---|---|
String | slotName | The name of the existing replication slot |
Remarks
Create a PgOutputReplicationSlot instance with this constructor to wrap an existing PostgreSQL replication slot that has been initialized for the pgoutput logical decoding plugin.