The following example demonstrates controlling logical
decoding using the SQL interface.

Before you can use logical decoding, you must set wal_level to
logical and max_replication_slots
to at least 1. Then, you should connect to the target database
(in the example below, postgres) as a
superuser.

The following example shows how logical decoding is controlled
over the streaming replication protocol, using the program
pg_recvlogical included in the
PostgreSQL distribution. This requires that client authentication
is set up to allow replication connections (see Section
25.2.5.1) and that max_wal_senders
is set sufficiently high to allow an additional connection.

Submit correction

If you see anything in the documentation that is not correct, does not match
your experience with the particular feature or requires further clarification,
please use
this form
to report a documentation issue.