PGReplicationConnection
PGReplicationConnection is an API class provided by the JDBC driver in GaussDB. 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 com.huawei.gaussdb.jdbc.replication package. The declaration of the class is as follows:
public class PGReplicationConnection implements PGReplicationConnection
Constructor Method
public PGReplicationConnection(BaseConnection connection)
Common Methods
Return Value |
Method |
Description |
Throws |
---|---|---|---|
ChainedCreateReplicationSlotBuilder |
createReplicationSlot() |
Creates a logical replication slot. Only LSN-based logical replication slots can be created. For details about how to create CSN-based logical replication slots, see the SQL function pg_create_logical_replication_slot for logical replication. |
- |
void |
dropReplicationSlot(String slotName) |
Deletes a logical replication slot. |
SQLException,IOException |
ChainedStreamBuilder |
replicationStream() |
Enables logical replication. |
- |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot