# Class PhysicalReplicationSlot

Namespace
  Npgsql.Replication

Assembly
  Npgsql.dll

Wraps a replication slot that uses physical replication.

    public class PhysicalReplicationSlot : ReplicationSlot

Inheritance
  object
  ReplicationSlot
  PhysicalReplicationSlot

Inherited Members
  ReplicationSlot.Name
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### PhysicalReplicationSlot(string, NpgsqlLogSequenceNumber?, uint?)

Creates a new PhysicalReplicationSlot instance.

    public PhysicalReplicationSlot(string slotName, NpgsqlLogSequenceNumber? restartLsn = null, uint? restartTimeline = null)

#### Parameters

`slotName` string

  The name of the existing replication slot

`restartLsn` NpgsqlLogSequenceNumber?

  The replication slot's `restart_lsn`

`restartTimeline` uint?

  The timeline ID associated to `restart_lsn`, following the current timeline history.

#### Remarks

Create a PhysicalReplicationSlot instance with this constructor to wrap an existing PostgreSQL replication slot that has been initialized for physical replication.

## Properties

### RestartLsn

The replication slot's `restart_lsn`.

    public NpgsqlLogSequenceNumber? RestartLsn { get; }

#### Property Value

NpgsqlLogSequenceNumber?

### RestartTimeline

The timeline ID associated to `restart_lsn`, following the current timeline history.

    public uint? RestartTimeline { get; }

#### Property Value

uint?