<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Streaming Replication Protocol Interface</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9.6.19 Documentation" HREF="index.html"><LINK REL="UP" TITLE="Logical Decoding" HREF="logicaldecoding.html"><LINK REL="PREVIOUS" TITLE="Logical Decoding Concepts" HREF="logicaldecoding-explanation.html"><LINK REL="NEXT" TITLE="Logical Decoding SQL Interface" HREF="logicaldecoding-sql.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="stylesheet.css"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"><META NAME="creation" CONTENT="2020-09-02T07:27:19"></HEAD ><BODY CLASS="SECT1" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="4" ALIGN="center" VALIGN="bottom" ><A HREF="index.html" >PostgreSQL 9.6.19 Documentation</A ></TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A TITLE="Logical Decoding Concepts" HREF="logicaldecoding-explanation.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A HREF="logicaldecoding.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="60%" ALIGN="center" VALIGN="bottom" >Chapter 47. Logical Decoding</TD ><TD WIDTH="20%" ALIGN="right" VALIGN="top" ><A TITLE="Logical Decoding SQL Interface" HREF="logicaldecoding-sql.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="LOGICALDECODING-WALSENDER" >47.3. Streaming Replication Protocol Interface</A ></H1 ><P > The commands <P ></P ></P><UL ><LI ><P ><TT CLASS="LITERAL" >CREATE_REPLICATION_SLOT <TT CLASS="REPLACEABLE" ><I >slot_name</I ></TT > LOGICAL <TT CLASS="REPLACEABLE" ><I >output_plugin</I ></TT ></TT ></P ></LI ><LI ><P ><TT CLASS="LITERAL" >DROP_REPLICATION_SLOT <TT CLASS="REPLACEABLE" ><I >slot_name</I ></TT ></TT ></P ></LI ><LI ><P ><TT CLASS="LITERAL" >START_REPLICATION SLOT <TT CLASS="REPLACEABLE" ><I >slot_name</I ></TT > LOGICAL ...</TT ></P ></LI ></UL ><P> are used to create, drop, and stream changes from a replication slot, respectively. These commands are only available over a replication connection; they cannot be used via SQL. See <A HREF="protocol-replication.html" >Section 51.3</A > for details on these commands. </P ><P > The command <A HREF="app-pgrecvlogical.html" ><SPAN CLASS="APPLICATION" >pg_recvlogical</SPAN ></A > can be used to control logical decoding over a streaming replication connection. (It uses these commands internally.) </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="logicaldecoding-explanation.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="logicaldecoding-sql.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Logical Decoding Concepts</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="logicaldecoding.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Logical Decoding <ACRONYM CLASS="ACRONYM" >SQL</ACRONYM > Interface</TD ></TR ></TABLE ></DIV ></BODY ></HTML >