From 9dbc5b631adc19876756da0f81bfedadd8c2975f Mon Sep 17 00:00:00 2001 From: Andrey Klychkov Date: Tue, 12 Nov 2019 06:05:59 +0300 Subject: [PATCH] postgresql_query: add note to the documentation (#64432) (#64539) (cherry picked from commit eb58f437fb4753e13a445ba9ec7ce020aa5a5e66) --- lib/ansible/modules/database/postgresql/postgresql_query.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/modules/database/postgresql/postgresql_query.py b/lib/ansible/modules/database/postgresql/postgresql_query.py index 75256323fce..d7b1e375d2d 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_query.py +++ b/lib/ansible/modules/database/postgresql/postgresql_query.py @@ -21,6 +21,8 @@ short_description: Run PostgreSQL queries description: - Runs arbitrary PostgreSQL queries. - Can run queries from SQL script files. +- Does not run against backup files. Use M(postgresql_db) with I(state=restore) + to run queries on files made by pg_dump/pg_dumpall utilities. version_added: '2.8' options: query: @@ -66,6 +68,8 @@ options: type: bool default: no version_added: '2.9' +seealso: +- module: postgresql_db author: - Felix Archambault (@archf) - Andrew Klychkov (@Andersson007)