October 2018
Beginner to intermediate
446 pages
11h 31m
English
Logical replication slots are essential to logical replication. Due to space limitations in this chapter, it is unfortunately not possible to cover all aspects of logical replication. However, I want to outline some of the basic concepts that are essential for logical decoding and therefore, also for logical replication.
If we want to create a replication slot, here's how it works. The function that's needed here takes two parameters: the first one will define the name of the replication slot, while the second one will carry the plugin that will be used to decode the transaction log. It will determine the format PostgreSQL is going to use to return the data:
test=# SELECT * FROM pg_create_logical_replication_slot('logical_slot', ...Read now
Unlock full access