public class LogicalCreateSlotBuilder extends AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder> implements ChainedLogicalCreateSlotBuilder
slotName| Constructor and Description |
|---|
LogicalCreateSlotBuilder(BaseConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
make()
Create slot with specified parameters in database
|
protected ChainedLogicalCreateSlotBuilder |
self() |
ChainedLogicalCreateSlotBuilder |
withOutputPlugin(String outputPlugin)
Output plugin that should be use for decode physical represent WAL to some logical form.
|
withSlotNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithSlotNamepublic LogicalCreateSlotBuilder(BaseConnection connection)
protected ChainedLogicalCreateSlotBuilder self()
self in class AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>public ChainedLogicalCreateSlotBuilder withOutputPlugin(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 SQLException
ChainedCommonCreateSlotBuildermake in interface ChainedCommonCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>SQLException - on errorCopyright © 2017 PostgreSQL Global Development Group. All rights reserved.