postgresql_db: add an example (#387)

pull/395/head
Andrew Klychkov 2020-05-20 21:07:21 +03:00 committed by GitHub
parent b41b46593e
commit bf5856b10c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -178,6 +178,13 @@ EXAMPLES = r'''
target: /tmp/acme.sql
target_opts: "-n public"
- name: Dump only table1 and table2 from the acme database
postgresql_db:
name: acme
state: dump
target: /tmp/table1_table2.sql
target_opts: "-t table1 -t table2"
# Note: In the example below, if database foo exists and has another tablespace
# the tablespace will be changed to foo. Access to the database will be locked
# until the copying of database files is finished.