fix(postgresql): add note about CLI utils options

This commit is contained in:
Michele Cereda
2025-07-14 22:28:57 +02:00
parent 035b7b0147
commit cd4295ab34

View File

@@ -223,6 +223,20 @@ pg_dumpall … --globals-only
pg_dumpall … -g --no-role-passwords pg_dumpall … -g --no-role-passwords
``` ```
> [!important]
> Prefer separating command line options from their values via the `=` character than using a space.<br/>
> This prevents confusion and errors.
>
> <details style='padding: 0 0 0 1rem'>
>
> ```diff
> pg_dumpall --no-publications \
> - --format d --jobs 4 --exclude-schema archived --exclude-schema bi
> + --format='d' --jobs=4 --exclude-schema='archived' --exclude-schema='bi'
> ```
>
> </details>
## Restore ## Restore
Refer [psql] and [pg_restore]. Refer [psql] and [pg_restore].
@@ -241,7 +255,8 @@ being restored.
The archive files are designed to be portable across architectures. The archive files are designed to be portable across architectures.
> [!important] > [!important]
> Executing a restore on an online database will very much take if offline. > Executing a restore on an online database will probably introduce conflicts of some kind.
> It is very much suggested to take the target offline before restoring.
```sh ```sh
# Restore dumps # Restore dumps