Skip to content

Commit 66b4e8f

Browse files
authored
postgresql_script: Add a note about not using the module with files generated by PG utils (ansible-collections#753)
1 parent 1392af5 commit 66b4e8f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/modules/postgresql_script.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
description:
1818
- Runs arbitrary PostgreSQL statements from a file.
1919
- The module always reports that the state has changed.
20-
- Does not run against backup files.
21-
Use M(community.postgresql.postgresql_db) with I(state=restore)
22-
to run queries on files made by pg_dump/pg_dumpall utilities.
20+
- Do NOT run the module against files generated by C(pg_dump),
21+
C(pg_dumpall), C(pg_restore) and other PostgreSQL utilities.
22+
- Use M(community.postgresql.postgresql_db) with I(state=restore)
23+
to run queries from files generated by C(pg_dump/pg_dumpall).
2324
2425
version_added: '2.1.0'
2526

0 commit comments

Comments
 (0)