pg_recvlogical pg_recvlogical 1 Application pg_recvlogical Control logical decoding (see ) streams over a walsender connection. pg_recvlogical Description pg_recvlogical controls logical decoding replication slots and streams data from such replication slots. It creates a replication-mode connection, so it is subject to the same constraints as pg_receivexlog, plus those for logical replication (see ). Options pg_recvlogical runs in one of three modes, which control its primary action: Create a new logical replication slot with the name specified in , using the output plugin . The slot is created for the database given in . Begin streaming changes from the logical replication slot with the name specified in , continuing until terminated with a signal. If the server side change stream ends with a server shutdown or disconnect, retry in a loop unless is specified. The stream format is determined by the output plugin specified when the slot was created. You must connect to the same database used to create the slot. Drop the replication slot with the name specified in , then exit. pg_recvlogical supports all the usual libpq-based options. These are explained in detail in the documentation for psql and for libpq. Username to connect as. Must have a suitable pg_hba.conf entry allowing replication connections. Defaults to current operating system user name. The database to connect to in replication mode; see mode descriptions for details. May be a libpq connstring instead. Defaults to user name. Host or socket to connect to. See psql and libpq documentation. Port number to connect to. See psql for an explanation of default port choices when this is not specified. Prevent prompting for a password. Will exit with an error code if a password is required but not available. Provide a password for this connection. Please use the pgservice file (see ) or an environment variable instead of this option. The following command-line options control the location and format of the output and other replication behavior: Write received and decoded transaction data into this file. Use - for stdout. When the connection to the server is lost, do not retry in a loop, just exit. Pass the option NAME to the output plugin with, if specified, the option value NAME. Which options exist and their effects depends on the used output plugin. How often should pg_recvlogical issue sync commands to ensure the --outputfile is safely flushed to disk without being asked by the server to do so. Specifying an interval of 0 disables issuing fsyncs altogether, while still reporting progress the server. In this case, data may be lost in the event of a crash. When creating a slot, use the logical decoding output plugin. See . This option has no effect if the slot already exists. This option has the same effect as the option of the same name in pg_receivexlog. See the description there. In mode, use the existing logical replication slot named slot_name. In mode, create the slot with this name. In mode, delete the slot with this name. In mode, start replication from the given LSN. For details on the effect of this, see the documentation in and . Ignored in other modes. The following additional options are available: Enables verbose mode. Print the pg_recvlogical version and exit. Show help about pg_recvlogical command line arguments, and exit.