Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-15 00:19:37 +00:00
parent 220486abce
commit d5421f7c01
42 changed files with 459 additions and 43 deletions

29
tldr/pg_createsubscriber Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pg_createsubscriber
> Convert a physical replica into a new logical replica.
> More information: <https://www.postgresql.org/docs/current/app-pgcreatesubscriber.html>.
- Convert a physical replica to a logical replica for a specific database:
`pg_createsubscriber {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}`
- Perform a dry run without modifying the target directory:
`pg_createsubscriber {{[-n|--dry-run]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}`
- Enable two-phase commit for the subscription:
`pg_createsubscriber {{[-T|--enable-two-phase]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}`
- Convert with verbose output:
`pg_createsubscriber {{[-v|--verbose]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}`
- Display help:
`pg_createsubscriber {{[-?|--help]}}`