PGReplicationConnection

PGReplicationConnection is an API class provided by the JDBC driver in openGauss. It is used to implement functions related to logical replication.

Inheritance Relationship of PGReplicationConnection

PGReplicationConnection is a logical replication interface. Its implementation class is PGReplicationConnectionImpl, which is in the org.postgresql.replication package. The declaration of the class is as follows:

public class PGReplicationConnection implements PGReplicationConnection

Construction Method

public PGReplicationConnection(BaseConnection connection)

Common Methods

Table 1 Common methods of PGReplicationConnection

Return Value

Method

Description

Throws

ChainedCreateReplicationSlotBuilder

createReplicationSlot()

Creates a logical replication slot.

-

void

dropReplicationSlot(String slotName)

Deletes a logical replication slot.

SQLException,IOException

ChainedStreamBuilder

replicationStream()

Enables logical replication.

-

Feedback
编组 3备份
    openGauss 2025-08-02 07:42:58
    cancel