# 48.3. Streaming Replication Protocol Interface

The commands

* `CREATE_REPLICATION_SLOT`` `*`slot_name`* LOGICAL *`output_plugin`*
* `DROP_REPLICATION_SLOT`` `*`slot_name`* \[ `WAIT` ]
* `START_REPLICATION SLOT`` `*`slot_name`* LOGICAL ...

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 [Section 52.4](https://www.postgresql.org/docs/13/protocol-replication.html) for details on these commands.

The command [pg\_recvlogical](https://www.postgresql.org/docs/13/app-pgrecvlogical.html) can be used to control logical decoding over a streaming replication connection. (It uses these commands internally.)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.postgresql.tw/14/server-programming/logical-decoding/streaming-replication-protocol-interface.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
