ChainedCommonCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>, ChainedLogicalCreateSlotBuilderpublic class LogicalCreateSlotBuilder extends AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder> implements ChainedLogicalCreateSlotBuilder
slotName| Constructor | Description |
|---|---|
LogicalCreateSlotBuilder(BaseConnection connection) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
make() |
Create slot with specified parameters in database.
|
protected ChainedLogicalCreateSlotBuilder |
self() |
|
ChainedLogicalCreateSlotBuilder |
withOutputPlugin(java.lang.String outputPlugin) |
Output plugin that should be use for decode physical represent WAL to some logical form.
|
withSlotNamewithSlotNamepublic LogicalCreateSlotBuilder(BaseConnection connection)
protected ChainedLogicalCreateSlotBuilder self()
self in class AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>public ChainedLogicalCreateSlotBuilder withOutputPlugin(java.lang.String outputPlugin)
ChainedLogicalCreateSlotBuilderOutput plugin that should be use for decode physical represent WAL to some logical form. Output plugin should be installed on server(exists in shared_preload_libraries).
Package postgresql-contrib provides sample output plugin test_decoding that can be use for test logical replication api
withOutputPlugin in interface ChainedLogicalCreateSlotBuilderoutputPlugin - not null name of the output plugin used for logical decodingpublic void make()
throws java.sql.SQLException
ChainedCommonCreateSlotBuildermake in interface ChainedCommonCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>java.sql.SQLException - on errorCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.