mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
postgresql_db: document when pg_restore is used (#589)
* postgresql_db: document when pg_restore is used (#588) * postgresql_db: more precise description for target_opts * Update plugins/modules/database/postgresql/postgresql_db.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
cca84abeb5
commit
ba28da9b62
1 changed files with 2 additions and 1 deletions
|
@ -67,6 +67,7 @@ options:
|
||||||
- The format of the backup will be detected based on the target name.
|
- The format of the backup will be detected based on the target name.
|
||||||
- Supported compression formats for dump and restore include C(.pgc), C(.bz2), C(.gz) and C(.xz)
|
- Supported compression formats for dump and restore include C(.pgc), C(.bz2), C(.gz) and C(.xz)
|
||||||
- Supported formats for dump and restore include C(.sql) and C(.tar)
|
- Supported formats for dump and restore include C(.sql) and C(.tar)
|
||||||
|
- "Restore program is selected by target file format: C(.tar) and C(.pgc) are handled by pg_restore, other with pgsql."
|
||||||
type: str
|
type: str
|
||||||
choices: [ absent, dump, present, restore ]
|
choices: [ absent, dump, present, restore ]
|
||||||
default: present
|
default: present
|
||||||
|
@ -77,7 +78,7 @@ options:
|
||||||
type: path
|
type: path
|
||||||
target_opts:
|
target_opts:
|
||||||
description:
|
description:
|
||||||
- Further arguments for pg_dump or pg_restore.
|
- Additional arguments for pg_dump or restore program (pg_restore or psql, depending on target's format).
|
||||||
- Used when I(state) is C(dump) or C(restore).
|
- Used when I(state) is C(dump) or C(restore).
|
||||||
type: str
|
type: str
|
||||||
maintenance_db:
|
maintenance_db:
|
||||||
|
|
Loading…
Reference in a new issue