Skip to content

Commit b2e26cb

Browse files
chitvsaminelch
authored andcommitted
pg_recvlogical: add page (tldr-pages#18835)
1 parent cb5ca5e commit b2e26cb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pages/common/pg_recvlogical.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# pg_recvlogical
2+
3+
> Control PostgreSQL logical decoding streams.
4+
> More information: <https://www.postgresql.org/docs/current/app-pgrecvlogical.html>.
5+
6+
- Create a new logical replication slot:
7+
8+
`pg_recvlogical {{[-d|--dbname]}} {{dbname}} {{[-S|--slot]}} {{slot_name}} --create-slot`
9+
10+
- Start streaming changes from a logical replication slot to a file:
11+
12+
`pg_recvlogical {{[-d|--dbname]}} {{dbname}} {{[-S|--slot]}} {{slot_name}} --start {{[-f|--file]}} {{filename}}`
13+
14+
- Drop a logical replication slot:
15+
16+
`pg_recvlogical {{[-d|--dbname]}} {{dbname}} {{[-S|--slot]}} {{slot_name}} --drop-slot`
17+
18+
- Create a slot with two-phase commit enabled:
19+
20+
`pg_recvlogical {{[-d|--dbname]}} {{dbname}} {{[-S|--slot]}} {{slot_name}} --create-slot {{[-t|--enable-two-phase]}}`
21+
22+
- Display help:
23+
24+
`pg_recvlogical {{[-?|--help]}}`

0 commit comments

Comments
 (0)