From 4eda7ff2e4b63e556a4cfd18cb9c23315a428a6b Mon Sep 17 00:00:00 2001 From: Sil3x Date: Mon, 12 Dec 2022 12:44:32 +0100 Subject: [PATCH 01/11] remove locals --- .../targets/setup_postgresql_db/tasks/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/integration/targets/setup_postgresql_db/tasks/main.yml b/tests/integration/targets/setup_postgresql_db/tasks/main.yml index 57384962..bf7ed994 100644 --- a/tests/integration/targets/setup_postgresql_db/tasks/main.yml +++ b/tests/integration/targets/setup_postgresql_db/tasks/main.yml @@ -127,15 +127,15 @@ group: '{{ pg_group }}' mode: '0644' -- name: Generate locales (Debian) - locale_gen: - name: '{{ item }}' - state: present - with_items: - - pt_BR - - es_ES - when: ansible_os_family == 'Debian' - +#- name: Generate locales (Debian) +# locale_gen: +# name: '{{ item }}' +# state: present +# with_items: +# - pt_BR +# - es_ES +# when: ansible_os_family == 'Debian' +# - block: - name: Install langpacks (RHEL8) yum: From eb7e530d593a1ba37eeba7565554896bcb631f9e Mon Sep 17 00:00:00 2001 From: Sil3x Date: Thu, 15 Dec 2022 18:00:12 +0100 Subject: [PATCH 02/11] fixing first test --- plugins/modules/postgresql_table.py | 32 +++++++++---- .../tasks/postgresql_table_initial.yml | 48 +++++++++++++++++++ 2 files changed, 72 insertions(+), 8 deletions(-) diff --git a/plugins/modules/postgresql_table.py b/plugins/modules/postgresql_table.py index 48d1200c..cb9627e8 100644 --- a/plugins/modules/postgresql_table.py +++ b/plugins/modules/postgresql_table.py @@ -80,6 +80,10 @@ default: '' aliases: - login_db + partition_by: + description: + - Type of the table partitioning. Possibil values are range, list, and hash + - type: str session_role: description: - Switch to session_role after connecting. @@ -312,7 +316,7 @@ def __exists_in_db(self): return False def create(self, columns='', params='', tblspace='', - unlogged=False, owner=''): + unlogged=False, owner='', partition_by='', partition_on=''): """ Create table. If table exists, check passed args (params, tblspace, owner) and, @@ -324,6 +328,8 @@ def create(self, columns='', params='', tblspace='', owner - table owner. unlogged - create unlogged table. columns - column string (comma separated). + partition_by - type of partitioning (range, hash, list). + partition_on - column string (comman separated). """ name = pg_quote_identifier(self.name, 'table') @@ -373,6 +379,9 @@ def create(self, columns='', params='', tblspace='', if tblspace: query += ' TABLESPACE "%s"' % tblspace + if partition_by: + query += " PARTITION BY %s (%s)" % (partition_by, partition_on) + if exec_sql(self, query, return_bool=True): changed = True @@ -482,6 +491,8 @@ def main(): session_role=dict(type='str'), cascade=dict(type='bool', default=False), trust_input=dict(type='bool', default=True), + partition_by=dict(type='str'), + partition_on=dict(type='list', elements='str'), ) module = AnsibleModule( argument_spec=argument_spec, @@ -499,6 +510,8 @@ def main(): storage_params = module.params['storage_params'] truncate = module.params['truncate'] columns = module.params['columns'] + partition_by = module.params['partition_by'] + partition_on = module.params['partition_on'] cascade = module.params['cascade'] session_role = module.params['session_role'] trust_input = module.params['trust_input'] @@ -512,20 +525,20 @@ def main(): module.warn("cascade=true is ignored when state=present") # Check mutual exclusive parameters: - if state == 'absent' and (truncate or newname or columns or tablespace or like or storage_params or unlogged or owner or including): + if state == 'absent' and (truncate or newname or columns or tablespace or like or storage_params or unlogged or owner or including or partition_by or partition_on): module.fail_json(msg="%s: state=absent is mutually exclusive with: " "truncate, rename, columns, tablespace, " - "including, like, storage_params, unlogged, owner" % table) + "including, like, storage_params, unlogged, owner, partition_by, partition_on" % table) - if truncate and (newname or columns or like or unlogged or storage_params or owner or tablespace or including): + if truncate and (newname or columns or like or unlogged or storage_params or owner or tablespace or including or partition_by or partition_on): module.fail_json(msg="%s: truncate is mutually exclusive with: " "rename, columns, like, unlogged, including, " - "storage_params, owner, tablespace" % table) + "storage_params, owner, tablespace, partition_by, partition_on" % table) - if newname and (columns or like or unlogged or storage_params or owner or tablespace or including): + if newname and (columns or like or unlogged or storage_params or owner or tablespace or including or partition_by or partition_on): module.fail_json(msg="%s: rename is mutually exclusive with: " "columns, like, unlogged, including, " - "storage_params, owner, tablespace" % table) + "storage_params, owner, tablespace, partition_by, partition_on" % table) if like and columns: module.fail_json(msg="%s: like and columns params are mutually exclusive" % table) @@ -544,6 +557,9 @@ def main(): if columns: columns = ','.join(columns) + if partition_on: + partition_on = ','.join(partition_on) + ############## # Do main job: table_obj = Table(table, module, cursor) @@ -576,7 +592,7 @@ def main(): elif state == 'present' and not like: changed = table_obj.create(columns, storage_params, - tablespace, unlogged, owner) + tablespace, unlogged, owner, partition_by, partition_on) elif state == 'present' and like: changed = table_obj.create_like(like, including, tablespace, diff --git a/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml b/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml index db0f2732..1a506d54 100644 --- a/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml +++ b/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml @@ -854,6 +854,54 @@ - result is changed - result.queries == ['ALTER TABLE "public"."test_schema_table" RENAME TO "new_test_schema_table"'] +# +# Create and drop partitioned table: +# + +#- name: postgresql_table - create table +# become_user: "{{ pg_user }}" +# become: true +# postgresql_table: +# login_db: postgres +# login_port: 5432 +# login_user: "{{ pg_user }}" +# name: test1 +# owner: alice +# columns: id int +# register: result +# ignore_errors: true + + +- name: postgresql_table - create table with partition by range + postgresql_table: + db: postgres + login_port: 5432 + login_user: "{{ pg_user }}" + name: test5 + columns: id int + partition_by: RANGE + partition_on: id + register: result + +- assert: + that: + - result is changed + - result.queries == ['CREATE TABLE "test5" (id int) PARTITION BY RANGE (id)'] + +#- name: postgresql_table - check that table exists after the previous step +# become_user: "{{ pg_user }}" +# become: true +# postgresql_query: +# db: postgres +# login_user: "{{ pg_user }}" +# query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test5'" +# ignore_errors: true +# register: result +# +#- assert: +# that: +# - result.rowcount == 1 + ############################ # Test trust_input parameter - name: postgresql_table - check trust_input From 7c1f954887bd4c09abf0efa1306a2f9312034add Mon Sep 17 00:00:00 2001 From: Sil3x Date: Tue, 10 Jan 2023 11:01:32 +0100 Subject: [PATCH 03/11] clean up --- .../tasks/postgresql_table_initial.yml | 42 +++++++------------ 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml b/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml index 1a506d54..863f8262 100644 --- a/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml +++ b/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml @@ -858,20 +858,6 @@ # Create and drop partitioned table: # -#- name: postgresql_table - create table -# become_user: "{{ pg_user }}" -# become: true -# postgresql_table: -# login_db: postgres -# login_port: 5432 -# login_user: "{{ pg_user }}" -# name: test1 -# owner: alice -# columns: id int -# register: result -# ignore_errors: true - - - name: postgresql_table - create table with partition by range postgresql_table: db: postgres @@ -888,20 +874,20 @@ - result is changed - result.queries == ['CREATE TABLE "test5" (id int) PARTITION BY RANGE (id)'] -#- name: postgresql_table - check that table exists after the previous step -# become_user: "{{ pg_user }}" -# become: true -# postgresql_query: -# db: postgres -# login_user: "{{ pg_user }}" -# query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test5'" -# ignore_errors: true -# register: result -# -#- assert: -# that: -# - result.rowcount == 1 - +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test5'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + ############################ # Test trust_input parameter - name: postgresql_table - check trust_input From 9093e5c96fc0cca2343c44789de8606220b46759 Mon Sep 17 00:00:00 2001 From: Sil3x Date: Tue, 10 Jan 2023 11:08:45 +0100 Subject: [PATCH 04/11] add drop table --- .../tasks/postgresql_table_initial.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml b/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml index 863f8262..34a9bb79 100644 --- a/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml +++ b/tests/integration/targets/postgresql_table/tasks/postgresql_table_initial.yml @@ -887,6 +887,17 @@ - assert: that: - result.rowcount == 1 + +- name: postgresql_table - drop table + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test5 + state: absent + register: result + ignore_errors: true ############################ # Test trust_input parameter From e1bc3e296a6126c9af30a1c7ba0d777ae331f89e Mon Sep 17 00:00:00 2001 From: Sil3x Date: Tue, 10 Jan 2023 11:25:49 +0100 Subject: [PATCH 05/11] add comment --- tests/integration/targets/setup_postgresql_db/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/targets/setup_postgresql_db/tasks/main.yml b/tests/integration/targets/setup_postgresql_db/tasks/main.yml index bf7ed994..18f3e994 100644 --- a/tests/integration/targets/setup_postgresql_db/tasks/main.yml +++ b/tests/integration/targets/setup_postgresql_db/tasks/main.yml @@ -127,6 +127,8 @@ group: '{{ pg_group }}' mode: '0644' +### Comment: This block caused the tests to crash + #- name: Generate locales (Debian) # locale_gen: # name: '{{ item }}' @@ -135,7 +137,7 @@ # - pt_BR # - es_ES # when: ansible_os_family == 'Debian' -# + - block: - name: Install langpacks (RHEL8) yum: From 9a6ae1b23828d64f9c83b4419deda01870b49228 Mon Sep 17 00:00:00 2001 From: Sil3x Date: Tue, 10 Jan 2023 11:59:50 +0100 Subject: [PATCH 06/11] fix documentation --- plugins/modules/postgresql_table.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/modules/postgresql_table.py b/plugins/modules/postgresql_table.py index cb9627e8..666d6a5a 100644 --- a/plugins/modules/postgresql_table.py +++ b/plugins/modules/postgresql_table.py @@ -82,8 +82,14 @@ - login_db partition_by: description: - - Type of the table partitioning. Possibil values are range, list, and hash - - type: str + - Type of the table partitioning. Possibil values are range, list, and hash. + type: str + default: '' + partition_on: + description: + - Columns that are used for partitioning + type: list + elements: str session_role: description: - Switch to session_role after connecting. From ca18f47972b82070e699ad8fe6e90ec712f36bb8 Mon Sep 17 00:00:00 2001 From: Sil3x Date: Tue, 10 Jan 2023 12:10:46 +0100 Subject: [PATCH 07/11] fix documentation --- plugins/modules/postgresql_table.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/modules/postgresql_table.py b/plugins/modules/postgresql_table.py index 666d6a5a..e99a463b 100644 --- a/plugins/modules/postgresql_table.py +++ b/plugins/modules/postgresql_table.py @@ -84,7 +84,6 @@ description: - Type of the table partitioning. Possibil values are range, list, and hash. type: str - default: '' partition_on: description: - Columns that are used for partitioning From f65c2744c60d5e3387fb2d0be09e90325c083a82 Mon Sep 17 00:00:00 2001 From: Sil3x Date: Tue, 10 Jan 2023 12:57:55 +0100 Subject: [PATCH 08/11] fix line length --- plugins/modules/postgresql_table.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/modules/postgresql_table.py b/plugins/modules/postgresql_table.py index e99a463b..140239a7 100644 --- a/plugins/modules/postgresql_table.py +++ b/plugins/modules/postgresql_table.py @@ -530,7 +530,8 @@ def main(): module.warn("cascade=true is ignored when state=present") # Check mutual exclusive parameters: - if state == 'absent' and (truncate or newname or columns or tablespace or like or storage_params or unlogged or owner or including or partition_by or partition_on): + if state == 'absent' and (truncate or newname or columns or tablespace or like or storage_params or unlogged or owner or including + or partition_by or partition_on): module.fail_json(msg="%s: state=absent is mutually exclusive with: " "truncate, rename, columns, tablespace, " "including, like, storage_params, unlogged, owner, partition_by, partition_on" % table) From bb446e91ecf6169ce6afda3a8ee1635ef7881ac5 Mon Sep 17 00:00:00 2001 From: SiL3x Date: Wed, 11 Jan 2023 10:14:45 +0100 Subject: [PATCH 09/11] Update plugins/modules/postgresql_table.py Co-authored-by: Andrew Klychkov --- plugins/modules/postgresql_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/postgresql_table.py b/plugins/modules/postgresql_table.py index 140239a7..b528f880 100644 --- a/plugins/modules/postgresql_table.py +++ b/plugins/modules/postgresql_table.py @@ -86,7 +86,7 @@ type: str partition_on: description: - - Columns that are used for partitioning + - Columns that are used for partitioning. type: list elements: str session_role: From 2fe4b1c5da024bdf29b0f0c312a0ce6afe51c71c Mon Sep 17 00:00:00 2001 From: SiL3x Date: Wed, 11 Jan 2023 10:14:52 +0100 Subject: [PATCH 10/11] Update plugins/modules/postgresql_table.py Co-authored-by: Andrew Klychkov --- plugins/modules/postgresql_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/postgresql_table.py b/plugins/modules/postgresql_table.py index b528f880..a9599e93 100644 --- a/plugins/modules/postgresql_table.py +++ b/plugins/modules/postgresql_table.py @@ -82,7 +82,7 @@ - login_db partition_by: description: - - Type of the table partitioning. Possibil values are range, list, and hash. + - Type of the table partitioning. Possible values are range, list, and hash. type: str partition_on: description: From 0301ca4f25377ca355ac2b7946c017dad44826db Mon Sep 17 00:00:00 2001 From: Sil3x Date: Thu, 12 Jan 2023 12:24:26 +0100 Subject: [PATCH 11/11] update doc --- .flake8 | 2 + ...support-for-partitions-to-table-module.yml | 2 + ...upport-for-partitions-to-table-module.yml~ | 2 + plugins/modules/#postgresql_table.py# | 637 +++ plugins/modules/postgresql_table.py | 5 +- test_results.txt | 4060 +++++++++++++++++ .../tasks/#postgresql_table_initial.yml# | 933 ++++ .../setup_postgresql_db/tasks/#main.yml# | 252 + 8 files changed, 5891 insertions(+), 2 deletions(-) create mode 100644 .flake8 create mode 100644 changelogs/fragments/391-add-support-for-partitions-to-table-module.yml create mode 100644 changelogs/fragments/391-add-support-for-partitions-to-table-module.yml~ create mode 100644 plugins/modules/#postgresql_table.py# create mode 100644 test_results.txt create mode 100644 tests/integration/targets/postgresql_table/tasks/#postgresql_table_initial.yml# create mode 100644 tests/integration/targets/setup_postgresql_db/tasks/#main.yml# diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..905c8bbe --- /dev/null +++ b/.flake8 @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 160 \ No newline at end of file diff --git a/changelogs/fragments/391-add-support-for-partitions-to-table-module.yml b/changelogs/fragments/391-add-support-for-partitions-to-table-module.yml new file mode 100644 index 00000000..ab5d178a --- /dev/null +++ b/changelogs/fragments/391-add-support-for-partitions-to-table-module.yml @@ -0,0 +1,2 @@ +minor_changes: + - postgresql_tabl - now partitioned tables can be created with the parameters partition_by and partition_on diff --git a/changelogs/fragments/391-add-support-for-partitions-to-table-module.yml~ b/changelogs/fragments/391-add-support-for-partitions-to-table-module.yml~ new file mode 100644 index 00000000..05fde9d9 --- /dev/null +++ b/changelogs/fragments/391-add-support-for-partitions-to-table-module.yml~ @@ -0,0 +1,2 @@ +minor_changes: + - diff --git a/plugins/modules/#postgresql_table.py# b/plugins/modules/#postgresql_table.py# new file mode 100644 index 00000000..222d4f31 --- /dev/null +++ b/plugins/modules/#postgresql_table.py# @@ -0,0 +1,637 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Copyright: (c) 2019, Andrew Klychkov (@Andersson007) +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +from __future__ import absolute_import, division, print_function +__metaclass__ = type + +DOCUMENTATION = r''' +--- +module: postgresql_table +short_description: Create, drop, or modify a PostgreSQL table +description: +- Allows to create, drop, rename, truncate a table, or change some table attributes. +options: + table: + description: + - Table name. + required: true + aliases: + - name + type: str + state: + description: + - The table state. I(state=absent) is mutually exclusive with I(tablespace), I(owner), I(unlogged), + I(like), I(including), I(columns), I(truncate), I(storage_params) and, I(rename). + type: str + default: present + choices: [ absent, present ] + tablespace: + description: + - Set a tablespace for the table. + type: str + owner: + description: + - Set a table owner. + type: str + unlogged: + description: + - Create an unlogged table. + type: bool + default: false + like: + description: + - Create a table like another table (with similar DDL). + Mutually exclusive with I(columns), I(rename), and I(truncate). + type: str + including: + description: + - Keywords that are used with like parameter, may be DEFAULTS, CONSTRAINTS, INDEXES, STORAGE, COMMENTS or ALL. + Needs I(like) specified. Mutually exclusive with I(columns), I(rename), and I(truncate). + type: str + columns: + description: + - Columns that are needed. + type: list + elements: str + rename: + description: + - New table name. Mutually exclusive with I(tablespace), I(owner), + I(unlogged), I(like), I(including), I(columns), I(truncate), and I(storage_params). + type: str + truncate: + description: + - Truncate a table. Mutually exclusive with I(tablespace), I(owner), I(unlogged), + I(like), I(including), I(columns), I(rename), and I(storage_params). + type: bool + default: false + storage_params: + description: + - Storage parameters like fillfactor, autovacuum_vacuum_treshold, etc. + Mutually exclusive with I(rename) and I(truncate). + type: list + elements: str + db: + description: + - Name of database to connect and where the table will be created. + type: str + default: '' + aliases: + - login_db + partition_by: + description: + - Type of the table partitioning. Possibil values are range, list, and hash. + type: str + partition_on: + description: + - Columns that are used for partitioning + type: list + elements: str + session_role: + description: + - Switch to session_role after connecting. + The specified session_role must be a role that the current login_user is a member of. + - Permissions checking for SQL commands is carried out as though + the session_role were the one that had logged in originally. + type: str + cascade: + description: + - Automatically drop objects that depend on the table (such as views). + Used with I(state=absent) only. + type: bool + default: false + trust_input: + description: + - If C(false), check whether values of parameters are potentially dangerous. + - It makes sense to use C(false) only when SQL injections are possible. + type: bool + default: true + version_added: '0.2.0' +notes: +- Supports C(check_mode). +- If you do not pass db parameter, tables will be created in the database + named postgres. +- PostgreSQL allows to create columnless table, so columns param is optional. +- Unlogged tables are available from PostgreSQL server version 9.1. +seealso: +- module: community.postgresql.postgresql_sequence +- module: community.postgresql.postgresql_idx +- module: community.postgresql.postgresql_info +- module: community.postgresql.postgresql_tablespace +- module: community.postgresql.postgresql_owner +- module: community.postgresql.postgresql_privs +- module: community.postgresql.postgresql_copy +- name: CREATE TABLE reference + description: Complete reference of the CREATE TABLE command documentation. + link: https://www.postgresql.org/docs/current/sql-createtable.html +- name: ALTER TABLE reference + description: Complete reference of the ALTER TABLE command documentation. + link: https://www.postgresql.org/docs/current/sql-altertable.html +- name: DROP TABLE reference + description: Complete reference of the DROP TABLE command documentation. + link: https://www.postgresql.org/docs/current/sql-droptable.html +- name: PostgreSQL data types + description: Complete reference of the PostgreSQL data types documentation. + link: https://www.postgresql.org/docs/current/datatype.html +author: +- Andrei Klychkov (@Andersson007) +extends_documentation_fragment: +- community.postgresql.postgres + +''' + +EXAMPLES = r''' +- name: Create tbl2 in the acme database with the DDL like tbl1 with testuser as an owner + community.postgresql.postgresql_table: + db: acme + name: tbl2 + like: tbl1 + owner: testuser + +- name: Create tbl2 in the acme database and tablespace ssd with the DDL like tbl1 including comments and indexes + community.postgresql.postgresql_table: + db: acme + table: tbl2 + like: tbl1 + including: comments, indexes + tablespace: ssd + +- name: Create test_table with several columns in ssd tablespace with fillfactor=10 and autovacuum_analyze_threshold=1 + community.postgresql.postgresql_table: + name: test_table + columns: + - id bigserial primary key + - num bigint + - stories text + tablespace: ssd + storage_params: + - fillfactor=10 + - autovacuum_analyze_threshold=1 + +- name: Create an unlogged table in schema acme + community.postgresql.postgresql_table: + name: acme.useless_data + columns: waste_id int + unlogged: true + +- name: Rename table foo to bar + community.postgresql.postgresql_table: + table: foo + rename: bar + +- name: Rename table foo from schema acme to bar + community.postgresql.postgresql_table: + name: acme.foo + rename: bar + +- name: Set owner to someuser + community.postgresql.postgresql_table: + name: foo + owner: someuser + +- name: Change tablespace of foo table to new_tablespace and set owner to new_user + community.postgresql.postgresql_table: + name: foo + tablespace: new_tablespace + owner: new_user + +- name: Truncate table foo + community.postgresql.postgresql_table: + name: foo + truncate: true + +- name: Drop table foo from schema acme + community.postgresql.postgresql_table: + name: acme.foo + state: absent + +- name: Drop table bar cascade + community.postgresql.postgresql_table: + name: bar + state: absent + cascade: true +''' + +RETURN = r''' +table: + description: Name of a table. + returned: always + type: str + sample: 'foo' +state: + description: Table state. + returned: always + type: str + sample: 'present' +owner: + description: Table owner. + returned: always + type: str + sample: 'postgres' +tablespace: + description: Tablespace. + returned: always + type: str + sample: 'ssd_tablespace' +queries: + description: List of executed queries. + returned: always + type: str + sample: [ 'CREATE TABLE "test_table" (id bigint)' ] +storage_params: + description: Storage parameters. + returned: always + type: list + sample: [ "fillfactor=100", "autovacuum_analyze_threshold=1" ] +''' + +try: + from psycopg2.extras import DictCursor +except ImportError: + # psycopg2 is checked by connect_to_db() + # from ansible.module_utils.postgres + pass + +from ansible.module_utils.basic import AnsibleModule +from ansible_collections.community.postgresql.plugins.module_utils.database import ( + check_input, + pg_quote_identifier, +) +from ansible_collections.community.postgresql.plugins.module_utils.postgres import ( + connect_to_db, + exec_sql, + ensure_required_libs, + get_conn_params, + postgres_common_argument_spec, +) + + +# =========================================== +# PostgreSQL module specific support methods. +# + +class Table(object): + def __init__(self, name, module, cursor): + self.name = name + self.module = module + self.cursor = cursor + self.info = { + 'owner': '', + 'tblspace': '', + 'storage_params': [], + } + self.exists = False + self.__exists_in_db() + self.executed_queries = [] + + def get_info(self): + """Getter to refresh and get table info""" + self.__exists_in_db() + + def __exists_in_db(self): + """Check table exists and refresh info""" + if "." in self.name: + schema = self.name.split('.')[-2] + tblname = self.name.split('.')[-1] + else: + schema = 'public' + tblname = self.name + + query = ("SELECT t.tableowner, t.tablespace, c.reloptions " + "FROM pg_tables AS t " + "INNER JOIN pg_class AS c ON c.relname = t.tablename " + "INNER JOIN pg_namespace AS n ON c.relnamespace = n.oid " + "WHERE t.tablename = %(tblname)s " + "AND n.nspname = %(schema)s") + res = exec_sql(self, query, query_params={'tblname': tblname, 'schema': schema}, + add_to_executed=False) + if res: + self.exists = True + self.info = dict( + owner=res[0][0], + tblspace=res[0][1] if res[0][1] else '', + storage_params=res[0][2] if res[0][2] else [], + ) + + return True + else: + self.exists = False + return False + + def create(self, columns='', params='', tblspace='', + unlogged=False, owner='', partition_by='', partition_on=''): + """ + Create table. + If table exists, check passed args (params, tblspace, owner) and, + if they're different from current, change them. + Arguments: + params - storage params (passed by "WITH (...)" in SQL), + comma separated. + tblspace - tablespace. + owner - table owner. + unlogged - create unlogged table. + columns - column string (comma separated). + partition_by - type of partitioning (range, hash, list). + partition_on - column string (comman separated). + """ + name = pg_quote_identifier(self.name, 'table') + + changed = False + + if self.exists: + if tblspace == 'pg_default' and self.info['tblspace'] is None: + pass # Because they have the same meaning + elif tblspace and self.info['tblspace'] != tblspace: + self.set_tblspace(tblspace) + changed = True + + if owner and self.info['owner'] != owner: + self.set_owner(owner) + changed = True + + if params: + param_list = [p.strip(' ') for p in params.split(',')] + + new_param = False + for p in param_list: + if p not in self.info['storage_params']: + new_param = True + + if new_param: + self.set_stor_params(params) + changed = True + + if changed: + return True + return False + + query = "CREATE" + if unlogged: + query += " UNLOGGED TABLE %s" % name + else: + query += " TABLE %s" % name + + if columns: + query += " (%s)" % columns + else: + query += " ()" + + if params: + query += " WITH (%s)" % params + + if tblspace: + query += ' TABLESPACE "%s"' % tblspace + + if partition_by: + query += " PARTITION BY %s (%s)" % (partition_by, partition_on) + + if exec_sql(self, query, return_bool=True): + changed = True + + if owner: + changed = self.set_owner(owner) + + return changed + + def create_like(self, src_table, including='', tblspace='', + unlogged=False, params='', owner=''): + """ + Create table like another table (with similar DDL). + Arguments: + src_table - source table. + including - corresponds to optional INCLUDING expression + in CREATE TABLE ... LIKE statement. + params - storage params (passed by "WITH (...)" in SQL), + comma separated. + tblspace - tablespace. + owner - table owner. + unlogged - create unlogged table. + """ + changed = False + + name = pg_quote_identifier(self.name, 'table') + + query = "CREATE" + if unlogged: + query += " UNLOGGED TABLE %s" % name + else: + query += " TABLE %s" % name + + query += " (LIKE %s" % pg_quote_identifier(src_table, 'table') + + if including: + including = including.split(',') + for i in including: + query += " INCLUDING %s" % i + + query += ')' + + if params: + query += " WITH (%s)" % params + + if tblspace: + query += ' TABLESPACE "%s"' % tblspace + + if exec_sql(self, query, return_bool=True): + changed = True + + if owner: + changed = self.set_owner(owner) + + return changed + + def truncate(self): + query = "TRUNCATE TABLE %s" % pg_quote_identifier(self.name, 'table') + return exec_sql(self, query, return_bool=True) + + def rename(self, newname): + query = "ALTER TABLE %s RENAME TO %s" % (pg_quote_identifier(self.name, 'table'), + pg_quote_identifier(newname, 'table')) + return exec_sql(self, query, return_bool=True) + + def set_owner(self, username): + query = 'ALTER TABLE %s OWNER TO "%s"' % (pg_quote_identifier(self.name, 'table'), username) + return exec_sql(self, query, return_bool=True) + + def drop(self, cascade=False): + if not self.exists: + return False + + query = "DROP TABLE %s" % pg_quote_identifier(self.name, 'table') + if cascade: + query += " CASCADE" + return exec_sql(self, query, return_bool=True) + + def set_tblspace(self, tblspace): + query = 'ALTER TABLE %s SET TABLESPACE "%s"' % (pg_quote_identifier(self.name, 'table'), tblspace) + return exec_sql(self, query, return_bool=True) + + def set_stor_params(self, params): + query = "ALTER TABLE %s SET (%s)" % (pg_quote_identifier(self.name, 'table'), params) + return exec_sql(self, query, return_bool=True) + + +# =========================================== +# Module execution. +# + + +def main(): + argument_spec = postgres_common_argument_spec() + argument_spec.update( + table=dict(type='str', required=True, aliases=['name']), + state=dict(type='str', default='present', choices=['absent', 'present']), + db=dict(type='str', default='', aliases=['login_db']), + tablespace=dict(type='str'), + owner=dict(type='str'), + unlogged=dict(type='bool', default=False), + like=dict(type='str'), + including=dict(type='str'), + rename=dict(type='str'), + truncate=dict(type='bool', default=False), + columns=dict(type='list', elements='str'), + storage_params=dict(type='list', elements='str'), + session_role=dict(type='str'), + cascade=dict(type='bool', default=False), + trust_input=dict(type='bool', default=True), + partition_by=dict(type='str'), + partition_on=dict(type='list', elements='str'), + ) + module = AnsibleModule( + argument_spec=argument_spec, + supports_check_mode=True, + ) + + table = module.params['table'] + state = module.params['state'] + tablespace = module.params['tablespace'] + owner = module.params['owner'] + unlogged = module.params['unlogged'] + like = module.params['like'] + including = module.params['including'] + newname = module.params['rename'] + storage_params = module.params['storage_params'] + truncate = module.params['truncate'] + columns = module.params['columns'] + partition_by = module.params['partition_by'] + partition_on = module.params['partition_on'] + cascade = module.params['cascade'] + session_role = module.params['session_role'] + Trust_input = module.params['trust_input'] + + if not trust_input: + # Check input for potentially dangerous elements: + check_input(module, table, tablespace, owner, like, including, + newname, storage_params, columns, session_role) + + if state == 'present' and cascade: + module.warn("cascade=true is ignored when state=present") + + # Check mutual exclusive parameters: + if state == 'absent' and (truncate or newname or columns or tablespace or like or storage_params or unlogged or owner or including + or partition_by or partition_on): + module.fail_json(msg="%s: state=absent is mutually exclusive with: " + "truncate, rename, columns, tablespace, " + "including, like, storage_params, unlogged, owner, partition_by, partition_on" % table) + + if truncate and (newname or columns or like or unlogged or storage_params or owner or tablespace or including or partition_by or partition_on): + module.fail_json(msg="%s: truncate is mutually exclusive with: " + "rename, columns, like, unlogged, including, " + "storage_params, owner, tablespace, partition_by, partition_on" % table) + + if newname and (columns or like or unlogged or storage_params or owner or tablespace or including or partition_by or partition_on): + module.fail_json(msg="%s: rename is mutually exclusive with: " + "columns, like, unlogged, including, " + "storage_params, owner, tablespace, partition_by, partition_on" % table) + + if like and columns: + module.fail_json(msg="%s: like and columns params are mutually exclusive" % table) + if including and not like: + module.fail_json(msg="%s: including param needs like param specified" % table) + + # Ensure psycopg2 libraries are available before connecting to DB: + ensure_required_libs(module) + conn_params = get_conn_params(module, module.params) + db_connection, dummy = connect_to_db(module, conn_params, autocommit=False) + cursor = db_connection.cursor(cursor_factory=DictCursor) + + if storage_params: + storage_params = ','.join(storage_params) + + if columns: + columns = ','.join(columns) + + if partition_on: + partition_on = ','.join(partition_on) + + ############## + # Do main job: + table_obj = Table(table, module, cursor) + + # Set default returned values: + changed = False + kw = {} + kw['table'] = table + kw['state'] = '' + if table_obj.exists: + kw = dict( + table=table, + state='present', + owner=table_obj.info['owner'], + tablespace=table_obj.info['tblspace'], + storage_params=table_obj.info['storage_params'], + ) + + if state == 'absent': + changed = table_obj.drop(cascade=cascade) + + elif truncate: + changed = table_obj.truncate() + + elif newname: + changed = table_obj.rename(newname) + q = table_obj.executed_queries + table_obj = Table(newname, module, cursor) + table_obj.executed_queries = q + + elif state == 'present' and not like: + changed = table_obj.create(columns, storage_params, + tablespace, unlogged, owner, partition_by, partition_on) + + elif state == 'present' and like: + changed = table_obj.create_like(like, including, tablespace, + unlogged, storage_params) + + if changed: + if module.check_mode: + db_connection.rollback() + else: + db_connection.commit() + + # Refresh table info for RETURN. + # Note, if table has been renamed, it gets info by newname: + table_obj.get_info() + db_connection.commit() + if table_obj.exists: + kw = dict( + table=table, + state='present', + owner=table_obj.info['owner'], + tablespace=table_obj.info['tblspace'], + storage_params=table_obj.info['storage_params'], + ) + else: + # We just change the table state here + # to keep other information about the dropped table: + kw['state'] = 'absent' + + kw['queries'] = table_obj.executed_queries + kw['changed'] = changed + db_connection.close() + module.exit_json(**kw) + + +if __name__ == '__main__': + main() diff --git a/plugins/modules/postgresql_table.py b/plugins/modules/postgresql_table.py index a9599e93..9206db05 100644 --- a/plugins/modules/postgresql_table.py +++ b/plugins/modules/postgresql_table.py @@ -82,11 +82,11 @@ - login_db partition_by: description: - - Type of the table partitioning. Possible values are range, list, and hash. + - Type of the table partitioning. Possible values are range, list, and hash. Mutually required with I(partition_on). type: str partition_on: description: - - Columns that are used for partitioning. + - Columns that are used for partitioning. Mutually required with I(partition_by). type: list elements: str session_role: @@ -137,6 +137,7 @@ link: https://www.postgresql.org/docs/current/datatype.html author: - Andrei Klychkov (@Andersson007) +- Max Klingsporn (@Sil3x) extends_documentation_fragment: - community.postgresql.postgres diff --git a/test_results.txt b/test_results.txt new file mode 100644 index 00000000..26035bd9 --- /dev/null +++ b/test_results.txt @@ -0,0 +1,4060 @@ +Configured locale: en_US.UTF-8 +Falling back to tests in "tests/integration/targets/" because "roles/test/" was not found. +Assuming Docker is available on localhost. +Run command: docker -v +Detected "docker" container runtime version: Docker version 20.10.21, build baeda1f82a +Starting new "ansible-test-controller-AtOFET7r" container. +Starting new "ansible-test-target-AtOFET7r" container. +Run command: docker image inspect quay.io/ansible/ubuntu2004-test-container:4.8.0 +Run command: docker image inspect quay.io/ansible/default-test-container:6.13.0 +Run command: docker run --volume /sys/fs/cgroup:/sys/fs/cgroup:ro --privileged=false --tmpfs /tmp:exec --tmpfs /run:exec --tmpfs /run/lock --security-opt seccomp=unconfined --volume /var/run/docker.sock:/var/run/docker.sock -d --name ... +Run command: docker run --volume /sys/fs/cgroup:/sys/fs/cgroup:ro --privileged=false --tmpfs /tmp:exec --tmpfs /run:exec --tmpfs /run/lock --security-opt seccomp=unconfined --volume /var/run/docker.sock:/var/run/docker.sock -d --name ... +Adding "ansible-test-controller-AtOFET7r" to container database. +Run command: docker container inspect e906221242c15f08732d8d2a257d292a72bdc4d46820ded4f00928c95bc2ede9 +Adding "ansible-test-target-AtOFET7r" to container database. +Run command: docker container inspect 6cb93688b1350c58ab3e683bcae2ff11e3ecc1a46d5279905e2c889e34ade04c +Stream command with data: docker exec -i ansible-test-controller-AtOFET7r /bin/sh +Stream command with data: docker exec -i ansible-test-target-AtOFET7r /bin/sh +Scanning collection root: /home/mxk/ansible_collections +Including collection: community.postgresql (263 files) +Creating a payload archive containing 1267 files... +Created a 1896712 byte payload archive containing 1267 files in 0 seconds. +Run command with stdin: docker exec -i ansible-test-controller-AtOFET7r tar oxzf - -C /root +Creating container database. +Stream command: docker exec ansible-test-controller-AtOFET7r /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible_collections/community/postgresql LC_ALL=en_US.UTF-8 /usr/bin/python3.11 /root/ansible/bin/ansible-test integration -v - ... +Configured locale: en_US.UTF-8 +Falling back to tests in "tests/integration/targets/" because "roles/test/" was not found. +Parsing container database. +Run command: /usr/bin/python3.11 -c 'import cryptography' +Stream command with data: /usr/bin/python3.11 +Execute command: /usr/bin/python3.11 /tmp/ansible-test-v7_4gngx-pip.py install --disable-pip-version-check -r requirements/ansible.txt -c requirements/constraints.txt +Run command: /usr/bin/python3.11 /root/ansible/test/lib/ansible_test/_util/target/tools/yamlcheck.py +Run command: ssh -i /root/ansible_collections/community/postgresql/tests/output/.tmp/id_rsa -o BatchMode=yes -o ServerAliveCountMax=4 -o ServerAliveInterval=15 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -q -vvv -E /t ... +Configuring target inventory. +Running postgresql_copy integration test role +Initializing "/tmp/ansible-test-fi_8w3n1-injector" as the temporary injector directory. +Injecting "/tmp/python-mwmpfv6q-ansible/python" as a execv wrapper for the "/usr/bin/python3.11" interpreter. +Stream command: ansible-playbook postgresql_copy-dpe0p3he.yml -i inventory -v +[WARNING]: running playbook inside collection community.postgresql +Using /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_copy-o55e838p-ÅÑŚÌβŁÈ/tests/integration/integration.cfg as config file + +PLAY [testhost] **************************************************************** + +TASK [Gathering Facts] ********************************************************* +ok: [testhost] + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 2] ****************************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 3] ****************************************** +ok: [testhost] => {"ansible_facts": {"python_suffix": "-py3"}, "changed": false} + +TASK [setup_postgresql_db : Include distribution and Python version specific variables] *** +ok: [testhost] => {"ansible_facts": {"pg_auto_conf": "{{ pg_dir }}/postgresql.auto.conf", "pg_dir": "/var/lib/postgresql/14/main", "pg_hba_location": "/etc/postgresql/14/main/pg_hba.conf", "pg_ver": 14, "postgis": "postgresql-14-postgis-3", "postgresql_packages": ["apt-utils", "postgresql-14", "postgresql-common", "python3-psycopg2"]}, "ansible_included_var_files": ["/root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_copy-o55e838p-ÅÑŚÌβŁÈ/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-20-py3.yml"], "changed": false} + +TASK [setup_postgresql_db : Make sure the dbus service is enabled under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Make sure the dbus service is started under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : stop postgresql service] *************************** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Could not find the requested service postgresql: host"} +...ignoring + +TASK [setup_postgresql_db : remove old db (RedHat)] **************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : remove old db config and files (debian)] *********** +ok: [testhost] => (item=/etc/postgresql) => {"ansible_loop_var": "loop_item", "changed": false, "loop_item": "/etc/postgresql", "path": "/etc/postgresql", "state": "absent"} +ok: [testhost] => (item=/var/lib/postgresql) => {"ansible_loop_var": "loop_item", "changed": false, "loop_item": "/var/lib/postgresql", "path": "/var/lib/postgresql", "state": "absent"} + +TASK [setup_postgresql_db : Install wget] ************************************** +changed: [testhost] => {"cache_update_time": 1669716107, "cache_updated": false, "changed": true, "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n", "stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following NEW packages will be installed:\n wget\n0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.\nNeed to get 348 kB of archives.\nAfter this operation, 1012 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 wget amd64 1.20.3-1ubuntu2 [348 kB]\nFetched 348 kB in 0s (1126 kB/s)\nSelecting previously unselected package wget.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 23188 files and directories currently installed.)\r\nPreparing to unpack .../wget_1.20.3-1ubuntu2_amd64.deb ...\r\nUnpacking wget (1.20.3-1ubuntu2) ...\r\nSetting up wget (1.20.3-1ubuntu2) ...\r\nProcessing triggers for man-db (2.9.1-1) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following NEW packages will be installed:", " wget", "0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.", "Need to get 348 kB of archives.", "After this operation, 1012 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 wget amd64 1.20.3-1ubuntu2 [348 kB]", "Fetched 348 kB in 0s (1126 kB/s)", "Selecting previously unselected package wget.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 23188 files and directories currently installed.)", "Preparing to unpack .../wget_1.20.3-1ubuntu2_amd64.deb ...", "Unpacking wget (1.20.3-1ubuntu2) ...", "Setting up wget (1.20.3-1ubuntu2) ...", "Processing triggers for man-db (2.9.1-1) ..."]} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "echo \"deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" > /etc/apt/sources.list.d/pgdg.list", "delta": "0:00:00.028587", "end": "2022-11-29 10:01:52.604649", "msg": "", "rc": 0, "start": "2022-11-29 10:01:52.576062", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -", "delta": "0:00:00.906285", "end": "2022-11-29 10:01:53.664302", "msg": "", "rc": 0, "start": "2022-11-29 10:01:52.758017", "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)"], "stdout": "OK", "stdout_lines": ["OK"]} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "apt -y update", "delta": "0:00:01.850121", "end": "2022-11-29 10:01:55.660910", "msg": "", "rc": 0, "start": "2022-11-29 10:01:53.810789", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease\nGet:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [91.6 kB]\nHit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease\nHit:5 http://security.ubuntu.com/ubuntu focal-security InRelease\nGet:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [417 kB]\nFetched 509 kB in 1s (727 kB/s)\nReading package lists...\nBuilding dependency tree...\nReading state information...\n36 packages can be upgraded. Run 'apt list --upgradable' to see them.", "stdout_lines": ["Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease", "Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [91.6 kB]", "Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease", "Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease", "Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease", "Get:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [417 kB]", "Fetched 509 kB in 1s (727 kB/s)", "Reading package lists...", "Building dependency tree...", "Reading state information...", "36 packages can be upgraded. Run 'apt list --upgradable' to see them."]} + +TASK [setup_postgresql_db : Install locale needed] ***************************** +changed: [testhost] => (item=es_ES) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen es_ES", "delta": "0:00:00.411036", "end": "2022-11-29 10:01:56.225258", "item": "es_ES", "msg": "", "rc": 0, "start": "2022-11-29 10:01:55.814222", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n es_ES.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " es_ES.ISO-8859-1... done", "Generation complete."]} +changed: [testhost] => (item=pt_BR) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen pt_BR", "delta": "0:00:00.395125", "end": "2022-11-29 10:01:56.752801", "item": "pt_BR", "msg": "", "rc": 0, "start": "2022-11-29 10:01:56.357676", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n pt_BR.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " pt_BR.ISO-8859-1... done", "Generation complete."]} + +TASK [setup_postgresql_db : Update locale] ************************************* +changed: [testhost] => {"changed": true, "cmd": "update-locale", "delta": "0:00:00.015607", "end": "2022-11-29 10:01:56.916441", "msg": "", "rc": 0, "start": "2022-11-29 10:01:56.900834", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : install dependencies for postgresql test] ********** +changed: [testhost] => (item=apt-utils) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": true, "postgresql_package_item": "apt-utils", "stderr": "debconf: delaying package configuration, since apt-utils is not installed\n", "stderr_lines": ["debconf: delaying package configuration, since apt-utils is not installed"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following NEW packages will be installed:\n apt-utils\n0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.\nNeed to get 213 kB of archives.\nAfter this operation, 856 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apt-utils amd64 2.0.9 [213 kB]\nFetched 213 kB in 0s (802 kB/s)\nSelecting previously unselected package apt-utils.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 23199 files and directories currently installed.)\r\nPreparing to unpack .../apt-utils_2.0.9_amd64.deb ...\r\nUnpacking apt-utils (2.0.9) ...\r\nSetting up apt-utils (2.0.9) ...\r\nProcessing triggers for man-db (2.9.1-1) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following NEW packages will be installed:", " apt-utils", "0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.", "Need to get 213 kB of archives.", "After this operation, 856 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apt-utils amd64 2.0.9 [213 kB]", "Fetched 213 kB in 0s (802 kB/s)", "Selecting previously unselected package apt-utils.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 23199 files and directories currently installed.)", "Preparing to unpack .../apt-utils_2.0.9_amd64.deb ...", "Unpacking apt-utils (2.0.9) ...", "Setting up apt-utils (2.0.9) ...", "Processing triggers for man-db (2.9.1-1) ..."]} +changed: [testhost] => (item=postgresql-14) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": true, "postgresql_package_item": "postgresql-14", "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n cron libcommon-sense-perl libjson-perl libjson-xs-perl libllvm10 libpq5\n libsensors-config libsensors5 libtypes-serialiser-perl logrotate\n postgresql-client-14 postgresql-client-common postgresql-common ssl-cert\n sysstat\nSuggested packages:\n anacron checksecurity default-mta | mail-transport-agent lm-sensors\n bsd-mailx | mailx postgresql-doc-14 openssl-blacklist isag\nThe following NEW packages will be installed:\n cron libcommon-sense-perl libjson-perl libjson-xs-perl libllvm10 libpq5\n libsensors-config libsensors5 libtypes-serialiser-perl logrotate\n postgresql-14 postgresql-client-14 postgresql-client-common\n postgresql-common ssl-cert sysstat\n0 upgraded, 16 newly installed, 0 to remove and 36 not upgraded.\nNeed to get 34.1 MB of archives.\nAfter this operation, 137 MB of additional disk space will be used.\nGet:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-common all 246.pgdg20.04+1 [92.4 kB]\nGet:2 http://archive.ubuntu.com/ubuntu focal/main amd64 cron amd64 3.0pl1-136ubuntu1 [71.5 kB]\nGet:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-common all 246.pgdg20.04+1 [236 kB]\nGet:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libjson-perl all 4.02000-2 [80.9 kB]\nGet:5 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 libpq5 amd64 15.1-1.pgdg20.04+1 [183 kB]\nGet:6 http://archive.ubuntu.com/ubuntu focal/main amd64 ssl-cert all 1.0.39 [17.0 kB]\nGet:7 http://archive.ubuntu.com/ubuntu focal/main amd64 logrotate amd64 3.14.0-4ubuntu3 [44.5 kB]\nGet:8 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-14 amd64 14.6-1.pgdg20.04+1 [1621 kB]\nGet:9 http://archive.ubuntu.com/ubuntu focal/main amd64 libcommon-sense-perl amd64 3.74-2build6 [20.1 kB]\nGet:10 http://archive.ubuntu.com/ubuntu focal/main amd64 libtypes-serialiser-perl all 1.0-1 [12.1 kB]\nGet:11 http://archive.ubuntu.com/ubuntu focal/main amd64 libjson-xs-perl amd64 4.020-1build1 [83.7 kB]\nGet:12 http://archive.ubuntu.com/ubuntu focal/main amd64 libllvm10 amd64 1:10.0.0-4ubuntu1 [15.3 MB]\nGet:13 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-14 amd64 14.6-1.pgdg20.04+1 [15.8 MB]\nGet:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsensors-config all 1:3.6.0-2ubuntu1.1 [6052 B]\nGet:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsensors5 amd64 1:3.6.0-2ubuntu1.1 [27.2 kB]\nGet:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 sysstat amd64 12.2.0-2ubuntu0.1 [448 kB]\nPreconfiguring packages ...\nFetched 34.1 MB in 2s (20.4 MB/s)\nSelecting previously unselected package cron.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 23237 files and directories currently installed.)\r\nPreparing to unpack .../00-cron_3.0pl1-136ubuntu1_amd64.deb ...\r\nUnpacking cron (3.0pl1-136ubuntu1) ...\r\nSelecting previously unselected package libjson-perl.\r\nPreparing to unpack .../01-libjson-perl_4.02000-2_all.deb ...\r\nUnpacking libjson-perl (4.02000-2) ...\r\nSelecting previously unselected package postgresql-client-common.\r\nPreparing to unpack .../02-postgresql-client-common_246.pgdg20.04+1_all.deb ...\r\nUnpacking postgresql-client-common (246.pgdg20.04+1) ...\r\nSelecting previously unselected package ssl-cert.\r\nPreparing to unpack .../03-ssl-cert_1.0.39_all.deb ...\r\nUnpacking ssl-cert (1.0.39) ...\r\nSelecting previously unselected package postgresql-common.\r\nPreparing to unpack .../04-postgresql-common_246.pgdg20.04+1_all.deb ...\r\nAdding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'\r\nUnpacking postgresql-common (246.pgdg20.04+1) ...\r\nSelecting previously unselected package logrotate.\r\nPreparing to unpack .../05-logrotate_3.14.0-4ubuntu3_amd64.deb ...\r\nUnpacking logrotate (3.14.0-4ubuntu3) ...\r\nSelecting previously unselected package libcommon-sense-perl.\r\nPreparing to unpack .../06-libcommon-sense-perl_3.74-2build6_amd64.deb ...\r\nUnpacking libcommon-sense-perl (3.74-2build6) ...\r\nSelecting previously unselected package libtypes-serialiser-perl.\r\nPreparing to unpack .../07-libtypes-serialiser-perl_1.0-1_all.deb ...\r\nUnpacking libtypes-serialiser-perl (1.0-1) ...\r\nSelecting previously unselected package libjson-xs-perl.\r\nPreparing to unpack .../08-libjson-xs-perl_4.020-1build1_amd64.deb ...\r\nUnpacking libjson-xs-perl (4.020-1build1) ...\r\nSelecting previously unselected package libllvm10:amd64.\r\nPreparing to unpack .../09-libllvm10_1%3a10.0.0-4ubuntu1_amd64.deb ...\r\nUnpacking libllvm10:amd64 (1:10.0.0-4ubuntu1) ...\r\nSelecting previously unselected package libpq5:amd64.\r\nPreparing to unpack .../10-libpq5_15.1-1.pgdg20.04+1_amd64.deb ...\r\nUnpacking libpq5:amd64 (15.1-1.pgdg20.04+1) ...\r\nSelecting previously unselected package libsensors-config.\r\nPreparing to unpack .../11-libsensors-config_1%3a3.6.0-2ubuntu1.1_all.deb ...\r\nUnpacking libsensors-config (1:3.6.0-2ubuntu1.1) ...\r\nSelecting previously unselected package libsensors5:amd64.\r\nPreparing to unpack .../12-libsensors5_1%3a3.6.0-2ubuntu1.1_amd64.deb ...\r\nUnpacking libsensors5:amd64 (1:3.6.0-2ubuntu1.1) ...\r\nSelecting previously unselected package postgresql-client-14.\r\nPreparing to unpack .../13-postgresql-client-14_14.6-1.pgdg20.04+1_amd64.deb ...\r\nUnpacking postgresql-client-14 (14.6-1.pgdg20.04+1) ...\r\nSelecting previously unselected package postgresql-14.\r\nPreparing to unpack .../14-postgresql-14_14.6-1.pgdg20.04+1_amd64.deb ...\r\nUnpacking postgresql-14 (14.6-1.pgdg20.04+1) ...\r\nSelecting previously unselected package sysstat.\r\nPreparing to unpack .../15-sysstat_12.2.0-2ubuntu0.1_amd64.deb ...\r\nUnpacking sysstat (12.2.0-2ubuntu0.1) ...\r\nSetting up postgresql-client-common (246.pgdg20.04+1) ...\r\nSetting up cron (3.0pl1-136ubuntu1) ...\r\nAdding group `crontab' (GID 106) ...\r\nDone.\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/cron.service → /lib/systemd/system/cron.service.\r\nSetting up libsensors-config (1:3.6.0-2ubuntu1.1) ...\r\nSetting up libpq5:amd64 (15.1-1.pgdg20.04+1) ...\r\nSetting up libcommon-sense-perl (3.74-2build6) ...\r\nSetting up postgresql-client-14 (14.6-1.pgdg20.04+1) ...\r\nupdate-alternatives: using /usr/share/postgresql/14/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode\r\nSetting up libllvm10:amd64 (1:10.0.0-4ubuntu1) ...\r\nSetting up ssl-cert (1.0.39) ...\r\nSetting up libsensors5:amd64 (1:3.6.0-2ubuntu1.1) ...\r\nSetting up libtypes-serialiser-perl (1.0-1) ...\r\nSetting up libjson-perl (4.02000-2) ...\r\nSetting up sysstat (12.2.0-2ubuntu0.1) ...\r\n\r\nCreating config file /etc/default/sysstat with new version\r\nupdate-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode\r\nupdate-alternatives: warning: skip creation of /usr/share/man/man1/sar.1.gz because associated file /usr/share/man/man1/sar.sysstat.1.gz (of link group sar) doesn't exist\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /lib/systemd/system/sysstat.service.\r\nSetting up logrotate (3.14.0-4ubuntu3) ...\r\nCreated symlink /etc/systemd/system/timers.target.wants/logrotate.timer → /lib/systemd/system/logrotate.timer.\r\nlogrotate.service is a disabled or a static unit, not starting it.\r\nSetting up libjson-xs-perl (4.020-1build1) ...\r\nSetting up postgresql-common (246.pgdg20.04+1) ...\r\nAdding user postgres to group ssl-cert\r\n\r\nCreating config file /etc/postgresql-common/createcluster.conf with new version\r\nBuilding PostgreSQL dictionaries from installed myspell/hunspell packages...\r\nRemoving obsolete dictionary files:\r\n'/etc/apt/trusted.gpg.d/apt.postgresql.org.gpg' -> '/usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg'\r\nCreated symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /lib/systemd/system/postgresql.service.\r\nSetting up postgresql-14 (14.6-1.pgdg20.04+1) ...\r\nCreating new PostgreSQL cluster 14/main ...\r\n/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions\r\nThe files belonging to this database system will be owned by user \"postgres\".\r\nThis user must also own the server process.\r\n\r\nThe database cluster will be initialized with locale \"C.UTF-8\".\r\nThe default database encoding has accordingly been set to \"UTF8\".\r\nThe default text search configuration will be set to \"english\".\r\n\r\nData page checksums are disabled.\r\n\r\nfixing permissions on existing directory /var/lib/postgresql/14/main ... ok\r\ncreating subdirectories ... ok\r\nselecting dynamic shared memory implementation ... posix\r\nselecting default max_connections ... 100\r\nselecting default shared_buffers ... 128MB\r\nselecting default time zone ... Etc/UTC\r\ncreating configuration files ... ok\r\nrunning bootstrap script ... ok\r\nperforming post-bootstrap initialization ... ok\r\nsyncing data to disk ... ok\r\nupdate-alternatives: using /usr/share/postgresql/14/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode\r\nProcessing triggers for systemd (245.4-4ubuntu3.18) ...\r\nProcessing triggers for man-db (2.9.1-1) ...\r\nProcessing triggers for libc-bin (2.31-0ubuntu9.9) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following additional packages will be installed:", " cron libcommon-sense-perl libjson-perl libjson-xs-perl libllvm10 libpq5", " libsensors-config libsensors5 libtypes-serialiser-perl logrotate", " postgresql-client-14 postgresql-client-common postgresql-common ssl-cert", " sysstat", "Suggested packages:", " anacron checksecurity default-mta | mail-transport-agent lm-sensors", " bsd-mailx | mailx postgresql-doc-14 openssl-blacklist isag", "The following NEW packages will be installed:", " cron libcommon-sense-perl libjson-perl libjson-xs-perl libllvm10 libpq5", " libsensors-config libsensors5 libtypes-serialiser-perl logrotate", " postgresql-14 postgresql-client-14 postgresql-client-common", " postgresql-common ssl-cert sysstat", "0 upgraded, 16 newly installed, 0 to remove and 36 not upgraded.", "Need to get 34.1 MB of archives.", "After this operation, 137 MB of additional disk space will be used.", "Get:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-common all 246.pgdg20.04+1 [92.4 kB]", "Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 cron amd64 3.0pl1-136ubuntu1 [71.5 kB]", "Get:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-common all 246.pgdg20.04+1 [236 kB]", "Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libjson-perl all 4.02000-2 [80.9 kB]", "Get:5 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 libpq5 amd64 15.1-1.pgdg20.04+1 [183 kB]", "Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 ssl-cert all 1.0.39 [17.0 kB]", "Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 logrotate amd64 3.14.0-4ubuntu3 [44.5 kB]", "Get:8 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-14 amd64 14.6-1.pgdg20.04+1 [1621 kB]", "Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 libcommon-sense-perl amd64 3.74-2build6 [20.1 kB]", "Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 libtypes-serialiser-perl all 1.0-1 [12.1 kB]", "Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 libjson-xs-perl amd64 4.020-1build1 [83.7 kB]", "Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 libllvm10 amd64 1:10.0.0-4ubuntu1 [15.3 MB]", "Get:13 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-14 amd64 14.6-1.pgdg20.04+1 [15.8 MB]", "Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsensors-config all 1:3.6.0-2ubuntu1.1 [6052 B]", "Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsensors5 amd64 1:3.6.0-2ubuntu1.1 [27.2 kB]", "Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 sysstat amd64 12.2.0-2ubuntu0.1 [448 kB]", "Preconfiguring packages ...", "Fetched 34.1 MB in 2s (20.4 MB/s)", "Selecting previously unselected package cron.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 23237 files and directories currently installed.)", "Preparing to unpack .../00-cron_3.0pl1-136ubuntu1_amd64.deb ...", "Unpacking cron (3.0pl1-136ubuntu1) ...", "Selecting previously unselected package libjson-perl.", "Preparing to unpack .../01-libjson-perl_4.02000-2_all.deb ...", "Unpacking libjson-perl (4.02000-2) ...", "Selecting previously unselected package postgresql-client-common.", "Preparing to unpack .../02-postgresql-client-common_246.pgdg20.04+1_all.deb ...", "Unpacking postgresql-client-common (246.pgdg20.04+1) ...", "Selecting previously unselected package ssl-cert.", "Preparing to unpack .../03-ssl-cert_1.0.39_all.deb ...", "Unpacking ssl-cert (1.0.39) ...", "Selecting previously unselected package postgresql-common.", "Preparing to unpack .../04-postgresql-common_246.pgdg20.04+1_all.deb ...", "Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'", "Unpacking postgresql-common (246.pgdg20.04+1) ...", "Selecting previously unselected package logrotate.", "Preparing to unpack .../05-logrotate_3.14.0-4ubuntu3_amd64.deb ...", "Unpacking logrotate (3.14.0-4ubuntu3) ...", "Selecting previously unselected package libcommon-sense-perl.", "Preparing to unpack .../06-libcommon-sense-perl_3.74-2build6_amd64.deb ...", "Unpacking libcommon-sense-perl (3.74-2build6) ...", "Selecting previously unselected package libtypes-serialiser-perl.", "Preparing to unpack .../07-libtypes-serialiser-perl_1.0-1_all.deb ...", "Unpacking libtypes-serialiser-perl (1.0-1) ...", "Selecting previously unselected package libjson-xs-perl.", "Preparing to unpack .../08-libjson-xs-perl_4.020-1build1_amd64.deb ...", "Unpacking libjson-xs-perl (4.020-1build1) ...", "Selecting previously unselected package libllvm10:amd64.", "Preparing to unpack .../09-libllvm10_1%3a10.0.0-4ubuntu1_amd64.deb ...", "Unpacking libllvm10:amd64 (1:10.0.0-4ubuntu1) ...", "Selecting previously unselected package libpq5:amd64.", "Preparing to unpack .../10-libpq5_15.1-1.pgdg20.04+1_amd64.deb ...", "Unpacking libpq5:amd64 (15.1-1.pgdg20.04+1) ...", "Selecting previously unselected package libsensors-config.", "Preparing to unpack .../11-libsensors-config_1%3a3.6.0-2ubuntu1.1_all.deb ...", "Unpacking libsensors-config (1:3.6.0-2ubuntu1.1) ...", "Selecting previously unselected package libsensors5:amd64.", "Preparing to unpack .../12-libsensors5_1%3a3.6.0-2ubuntu1.1_amd64.deb ...", "Unpacking libsensors5:amd64 (1:3.6.0-2ubuntu1.1) ...", "Selecting previously unselected package postgresql-client-14.", "Preparing to unpack .../13-postgresql-client-14_14.6-1.pgdg20.04+1_amd64.deb ...", "Unpacking postgresql-client-14 (14.6-1.pgdg20.04+1) ...", "Selecting previously unselected package postgresql-14.", "Preparing to unpack .../14-postgresql-14_14.6-1.pgdg20.04+1_amd64.deb ...", "Unpacking postgresql-14 (14.6-1.pgdg20.04+1) ...", "Selecting previously unselected package sysstat.", "Preparing to unpack .../15-sysstat_12.2.0-2ubuntu0.1_amd64.deb ...", "Unpacking sysstat (12.2.0-2ubuntu0.1) ...", "Setting up postgresql-client-common (246.pgdg20.04+1) ...", "Setting up cron (3.0pl1-136ubuntu1) ...", "Adding group `crontab' (GID 106) ...", "Done.", "Created symlink /etc/systemd/system/multi-user.target.wants/cron.service → /lib/systemd/system/cron.service.", "Setting up libsensors-config (1:3.6.0-2ubuntu1.1) ...", "Setting up libpq5:amd64 (15.1-1.pgdg20.04+1) ...", "Setting up libcommon-sense-perl (3.74-2build6) ...", "Setting up postgresql-client-14 (14.6-1.pgdg20.04+1) ...", "update-alternatives: using /usr/share/postgresql/14/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode", "Setting up libllvm10:amd64 (1:10.0.0-4ubuntu1) ...", "Setting up ssl-cert (1.0.39) ...", "Setting up libsensors5:amd64 (1:3.6.0-2ubuntu1.1) ...", "Setting up libtypes-serialiser-perl (1.0-1) ...", "Setting up libjson-perl (4.02000-2) ...", "Setting up sysstat (12.2.0-2ubuntu0.1) ...", "", "Creating config file /etc/default/sysstat with new version", "update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode", "update-alternatives: warning: skip creation of /usr/share/man/man1/sar.1.gz because associated file /usr/share/man/man1/sar.sysstat.1.gz (of link group sar) doesn't exist", "Created symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /lib/systemd/system/sysstat.service.", "Setting up logrotate (3.14.0-4ubuntu3) ...", "Created symlink /etc/systemd/system/timers.target.wants/logrotate.timer → /lib/systemd/system/logrotate.timer.", "logrotate.service is a disabled or a static unit, not starting it.", "Setting up libjson-xs-perl (4.020-1build1) ...", "Setting up postgresql-common (246.pgdg20.04+1) ...", "Adding user postgres to group ssl-cert", "", "Creating config file /etc/postgresql-common/createcluster.conf with new version", "Building PostgreSQL dictionaries from installed myspell/hunspell packages...", "Removing obsolete dictionary files:", "'/etc/apt/trusted.gpg.d/apt.postgresql.org.gpg' -> '/usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg'", "Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /lib/systemd/system/postgresql.service.", "Setting up postgresql-14 (14.6-1.pgdg20.04+1) ...", "Creating new PostgreSQL cluster 14/main ...", "/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions", "The files belonging to this database system will be owned by user \"postgres\".", "This user must also own the server process.", "", "The database cluster will be initialized with locale \"C.UTF-8\".", "The default database encoding has accordingly been set to \"UTF8\".", "The default text search configuration will be set to \"english\".", "", "Data page checksums are disabled.", "", "fixing permissions on existing directory /var/lib/postgresql/14/main ... ok", "creating subdirectories ... ok", "selecting dynamic shared memory implementation ... posix", "selecting default max_connections ... 100", "selecting default shared_buffers ... 128MB", "selecting default time zone ... Etc/UTC", "creating configuration files ... ok", "running bootstrap script ... ok", "performing post-bootstrap initialization ... ok", "syncing data to disk ... ok", "update-alternatives: using /usr/share/postgresql/14/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode", "Processing triggers for systemd (245.4-4ubuntu3.18) ...", "Processing triggers for man-db (2.9.1-1) ...", "Processing triggers for libc-bin (2.31-0ubuntu9.9) ..."]} +ok: [testhost] => (item=postgresql-common) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "postgresql-common"} +changed: [testhost] => (item=python3-psycopg2) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": true, "postgresql_package_item": "python3-psycopg2", "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSuggested packages:\n python-psycopg2-doc\nThe following NEW packages will be installed:\n python3-psycopg2\n0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.\nNeed to get 120 kB of archives.\nAfter this operation, 456 kB of additional disk space will be used.\nGet:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 python3-psycopg2 amd64 2.8.6-2~pgdg20.04+1 [120 kB]\nFetched 120 kB in 0s (640 kB/s)\nSelecting previously unselected package python3-psycopg2.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 25504 files and directories currently installed.)\r\nPreparing to unpack .../python3-psycopg2_2.8.6-2~pgdg20.04+1_amd64.deb ...\r\nUnpacking python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...\r\nSetting up python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Suggested packages:", " python-psycopg2-doc", "The following NEW packages will be installed:", " python3-psycopg2", "0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.", "Need to get 120 kB of archives.", "After this operation, 456 kB of additional disk space will be used.", "Get:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 python3-psycopg2 amd64 2.8.6-2~pgdg20.04+1 [120 kB]", "Fetched 120 kB in 0s (640 kB/s)", "Selecting previously unselected package python3-psycopg2.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 25504 files and directories currently installed.)", "Preparing to unpack .../python3-psycopg2_2.8.6-2~pgdg20.04+1_amd64.deb ...", "Unpacking python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...", "Setting up python3-psycopg2 (2.8.6-2~pgdg20.04+1) ..."]} + +TASK [setup_postgresql_db : Initialize postgres (RedHat systemd)] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (RedHat sysv)] ***************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (Debian)] ********************** +ok: [testhost] => {"changed": false, "cmd": ". /usr/share/postgresql-common/maintscripts-functions && set_system_locale && /usr/bin/pg_createcluster -u postgres 14 main", "delta": null, "end": null, "msg": "Did not run command since '/etc/postgresql/14/' exists", "rc": 0, "start": null, "stderr": "", "stderr_lines": [], "stdout": "skipped, since /etc/postgresql/14/ exists", "stdout_lines": ["skipped, since /etc/postgresql/14/ exists"]} + +TASK [setup_postgresql_db : Copy pg_hba into place] **************************** +changed: [testhost] => {"changed": true, "checksum": "ee5e714afec7113d11e2aca167bd08ba0eb2bd32", "dest": "/etc/postgresql/14/main/pg_hba.conf", "gid": 0, "group": "root", "md5sum": "ac04fb305309e15b41c01dd5d3d6ca6d", "mode": "0644", "owner": "postgres", "size": 470, "src": "/root/.ansible/tmp/ansible-tmp-1669716140.084592-147-21313308110771/source", "state": "file", "uid": 105} + +TASK [setup_postgresql_db : Install langpacks (RHEL8)] ************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Check if locales need to be generated (RedHat)] **** +skipping: [testhost] => (item=es_ES) => {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=pt_BR) => {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Reinstall internationalization files] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Generate locale (RedHat)] ************************** +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'es_ES', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'pt_BR', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Install glibc langpacks (Fedora >= 24)] ************ +skipping: [testhost] => (item=glibc-langpack-es) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-es", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=glibc-langpack-pt) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-pt", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : start postgresql service] ************************** +ok: [testhost] => {"changed": false, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ActiveEnterTimestampMonotonic": "3433092619", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target basic.target system.slice postgresql@14-main.service systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:02:08 UTC", "AssertTimestampMonotonic": "3433090164", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ConditionTimestampMonotonic": "3433090164", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlGroup": "/docker/6cb93688b1350c58ab3e683bcae2ff11e3ecc1a46d5279905e2c889e34ade04c/system.slice/postgresql.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainExitTimestampMonotonic": "3433092317", "ExecMainPID": "2677", "ExecMainStartTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainStartTimestampMonotonic": "3433091270", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "InactiveExitTimestampMonotonic": "3433091447", "InvocationID": "b20ee4f4d56c4137a3a8462bb67661f8", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:02:08 UTC", "StateChangeTimestampMonotonic": "3433092619", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : Pause between start and stop] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:02:21.100876", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:02:26.101101", "user_input": ""} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Stop postgresql service] *************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Pause between stop and start] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:02:26.186151", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:02:31.186417", "user_input": ""} + +TASK [setup_postgresql_db : Start postgresql service] ************************** +ok: [testhost] => {"changed": false, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ActiveEnterTimestampMonotonic": "3433092619", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target basic.target system.slice postgresql@14-main.service systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:02:08 UTC", "AssertTimestampMonotonic": "3433090164", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ConditionTimestampMonotonic": "3433090164", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlGroup": "/docker/6cb93688b1350c58ab3e683bcae2ff11e3ecc1a46d5279905e2c889e34ade04c/system.slice/postgresql.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainExitTimestampMonotonic": "3433092317", "ExecMainPID": "2677", "ExecMainStartTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainStartTimestampMonotonic": "3433091270", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "InactiveExitTimestampMonotonic": "3433091447", "InvocationID": "b20ee4f4d56c4137a3a8462bb67661f8", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:02:08 UTC", "StateChangeTimestampMonotonic": "3433092619", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : copy control file for dummy ext] ******************* +changed: [testhost] => {"changed": true, "checksum": "de37beb34a4765b0b07dc249c7866f1e0e7351fa", "dest": "/usr/share/postgresql/14/extension/dummy.control", "gid": 0, "group": "root", "md5sum": "a862d58944ee96613bf2c4b927d1dda5", "mode": "0444", "owner": "root", "size": 114, "src": "/root/.ansible/tmp/ansible-tmp-1669716151.5180492-181-19505386118336/source", "state": "file", "uid": 0} + +TASK [setup_postgresql_db : copy version files for dummy ext] ****************** +changed: [testhost] => (item=dummy--0.sql) => {"ansible_loop_var": "item", "changed": true, "checksum": "8f073962a56e90e49c0d8f7985497cd1b51506e2", "dest": "/usr/share/postgresql/14/extension/dummy--0.sql", "gid": 0, "group": "root", "item": "dummy--0.sql", "md5sum": "2f8d74e4567bf658dd00b22c410bc4ce", "mode": "0444", "owner": "root", "size": 108, "src": "/root/.ansible/tmp/ansible-tmp-1669716151.8410673-191-110629998460133/source", "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--1.0.sql) => {"ansible_loop_var": "item", "changed": true, "checksum": "a2b62264e8d532f9217b439b11c8c366dea14dc6", "dest": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0.sql", "md5sum": "18b7c45557cfb5bbc980e1fbc41f4bff", "mode": "0444", "owner": "root", "size": 110, "src": "/root/.ansible/tmp/ansible-tmp-1669716152.1432517-191-80537544451082/source", "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--2.0.sql) => {"ansible_loop_var": "item", "changed": true, "checksum": "f6839f9b1988bb8b594b50b4f85c7a52fc770d9d", "dest": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0.sql", "md5sum": "72aff58b176a4123431cbc822fcd7069", "mode": "0444", "owner": "root", "size": 110, "src": "/root/.ansible/tmp/ansible-tmp-1669716152.442651-191-169163726680880/source", "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--3.0.sql) => {"ansible_loop_var": "item", "changed": true, "checksum": "a5875ba65c676f96c2f3527a2ef0c495e77a9a72", "dest": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "gid": 0, "group": "root", "item": "dummy--3.0.sql", "md5sum": "532a1a640259b3f9ae4a74c5c0dfc309", "mode": "0444", "owner": "root", "size": 110, "src": "/root/.ansible/tmp/ansible-tmp-1669716152.7393448-191-224784688609873/source", "state": "file", "uid": 0} + +TASK [setup_postgresql_db : add update paths] ********************************** +changed: [testhost] => (item=dummy--0--1.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--0--1.0.sql", "gid": 0, "group": "root", "item": "dummy--0--1.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--1.0--2.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--1.0--2.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0--2.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--2.0--3.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--2.0--3.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0--3.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : Get PostgreSQL version] **************************** +[WARNING]: Module remote_tmp /var/lib/postgresql/.ansible/tmp did not exist and +was created with a mode of 0700, this may cause issues when running as another +user. To avoid this, create the remote_tmp dir with the correct permissions +manually +changed: [testhost] => {"changed": true, "cmd": "echo 'SHOW SERVER_VERSION' | psql --tuples-only --no-align --dbname postgres", "delta": "0:00:00.034982", "end": "2022-11-29 10:02:33.631475", "msg": "", "rc": 0, "start": "2022-11-29 10:02:33.596493", "stderr": "", "stderr_lines": [], "stdout": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "stdout_lines": ["14.6 (Ubuntu 14.6-1.pgdg20.04+1)"]} + +TASK [setup_postgresql_db : Print PostgreSQL server version] ******************* +ok: [testhost] => { + "msg": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)" +} + +TASK [setup_postgresql_db : postgresql SSL - create database] ****************** +changed: [testhost] => {"changed": true, "db": "ssl_db", "executed_commands": ["CREATE DATABASE \"ssl_db\""]} + +TASK [setup_postgresql_db : postgresql SSL - create role] ********************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ssl_user\" WITH ENCRYPTED PASSWORD %(password)s SUPERUSER"], "user": "ssl_user"} + +TASK [setup_postgresql_db : postgresql SSL - install openssl] ****************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_db : postgresql SSL - create certs 1] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl req -new -nodes -text -out ~postgres/root.csr -keyout ~postgres/root.key -subj \"/CN=localhost.local\"", "delta": "0:00:00.060418", "end": "2022-11-29 10:02:36.114317", "msg": "", "rc": 0, "start": "2022-11-29 10:02:36.053899", "stderr": "Generating a RSA private key\n............................+++++\n....................+++++\nwriting new private key to '/var/lib/postgresql/root.key'\n-----", "stderr_lines": ["Generating a RSA private key", "............................+++++", "....................+++++", "writing new private key to '/var/lib/postgresql/root.key'", "-----"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 2] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl x509 -req -in ~postgres/root.csr -text -days 3650 -extensions v3_ca -signkey ~postgres/root.key -out ~postgres/root.crt", "delta": "0:00:00.006392", "end": "2022-11-29 10:02:36.303920", "msg": "", "rc": 0, "start": "2022-11-29 10:02:36.297528", "stderr": "Signature ok\nsubject=CN = localhost.local\nGetting Private key", "stderr_lines": ["Signature ok", "subject=CN = localhost.local", "Getting Private key"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 3] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl req -new -nodes -text -out ~postgres/server.csr -keyout ~postgres/server.key -subj \"/CN=localhost.local\"", "delta": "0:00:00.012278", "end": "2022-11-29 10:02:36.472518", "msg": "", "rc": 0, "start": "2022-11-29 10:02:36.460240", "stderr": "Generating a RSA private key\n...+++++\n.+++++\nwriting new private key to '/var/lib/postgresql/server.key'\n-----", "stderr_lines": ["Generating a RSA private key", "...+++++", ".+++++", "writing new private key to '/var/lib/postgresql/server.key'", "-----"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 4] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl x509 -req -in ~postgres/server.csr -text -days 365 -CA ~postgres/root.crt -CAkey ~postgres/root.key -CAcreateserial -out server.crt", "delta": "0:00:00.005810", "end": "2022-11-29 10:02:36.633040", "msg": "", "rc": 0, "start": "2022-11-29 10:02:36.627230", "stderr": "Signature ok\nsubject=CN = localhost.local\nGetting CA Private Key", "stderr_lines": ["Signature ok", "subject=CN = localhost.local", "Getting CA Private Key"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - set right permissions to files] *** +changed: [testhost] => (item=~postgres/root.key) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/root.key", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/root.key", "size": 1708, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/server.key) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/server.key", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/server.key", "size": 1708, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/root.crt) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/root.crt", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/root.crt", "size": 2745, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/server.csr) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/server.csr", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/server.csr", "size": 3336, "state": "file", "uid": 105} + +TASK [setup_postgresql_db : postgresql SSL - enable SSL] *********************** +ok: [testhost] => {"changed": false, "context": "sighup", "name": "ssl", "prev_val_pretty": "on", "restart_required": false, "value": {"unit": null, "value": "on"}, "value_pretty": "on"} + +TASK [setup_postgresql_db : postgresql SSL - reload PostgreSQL to enable ssl on] *** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ActiveEnterTimestampMonotonic": "3433092619", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target basic.target system.slice postgresql@14-main.service systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:02:08 UTC", "AssertTimestampMonotonic": "3433090164", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ConditionTimestampMonotonic": "3433090164", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlGroup": "/docker/6cb93688b1350c58ab3e683bcae2ff11e3ecc1a46d5279905e2c889e34ade04c/system.slice/postgresql.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainExitTimestampMonotonic": "3433092317", "ExecMainPID": "2677", "ExecMainStartTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainStartTimestampMonotonic": "3433091270", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "InactiveExitTimestampMonotonic": "3433091447", "InvocationID": "b20ee4f4d56c4137a3a8462bb67661f8", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:02:08 UTC", "StateChangeTimestampMonotonic": "3433092619", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [postgresql_copy : postgresql_copy - create test table] ******************* +changed: [testhost] => {"changed": true, "owner": "postgres", "queries": ["CREATE TABLE \"acme\" (id int,name text)"], "state": "present", "storage_params": [], "table": "acme", "tablespace": ""} + +TASK [postgresql_copy : postgresql_copy - insert rows into test table] ********* +changed: [testhost] => {"changed": true, "query": "INSERT INTO acme (id, name) VALUES (1, 'first')", "query_all_results": [{}], "query_list": ["INSERT INTO acme (id, name) VALUES (1, 'first')"], "query_result": {}, "rowcount": 1, "statusmessage": "INSERT 0 1"} + +TASK [postgresql_copy : postgresql_copy - ensure that test data files don't exist] *** +ok: [testhost] => (item=/tmp/data.csv) => {"ansible_loop_var": "item", "changed": false, "item": "/tmp/data.csv", "path": "/tmp/data.csv", "state": "absent"} +ok: [testhost] => (item=/tmp/data.txt) => {"ansible_loop_var": "item", "changed": false, "item": "/tmp/data.txt", "path": "/tmp/data.txt", "state": "absent"} + +TASK [postgresql_copy : postgresql_copy - check_mode, copy test table content to data_file_txt] *** +changed: [testhost] => {"changed": true, "dst": "/tmp/data.txt", "queries": ["COPY \"acme\" TO '/tmp/data.txt'"], "src": "acme"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check that data_file_txt doesn't exist] *** +fatal: [testhost]: FAILED! => {"changed": true, "cmd": "head -n 1 '/tmp/data.txt'", "delta": "0:00:00.002615", "end": "2022-11-29 10:02:39.303869", "msg": "non-zero return code", "rc": 1, "start": "2022-11-29 10:02:39.301254", "stderr": "head: cannot open '/tmp/data.txt' for reading: No such file or directory", "stderr_lines": ["head: cannot open '/tmp/data.txt' for reading: No such file or directory"], "stdout": "", "stdout_lines": []} +...ignoring + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check_mode, copy test table content from data_file_txt] *** +changed: [testhost] => {"changed": true, "dst": "acme", "queries": ["COPY \"acme\" FROM '/tmp/data.txt'"], "src": "/tmp/data.txt"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check that test table continue to have one row] *** +ok: [testhost] => {"changed": false, "query": "SELECT * FROM acme", "query_all_results": [[{"id": 1, "name": "first"}]], "query_list": ["SELECT * FROM acme"], "query_result": [{"id": 1, "name": "first"}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check_mode, copy non existent table to data_file_txt] *** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Cannot execute SQL 'SELECT 1 FROM \"non_existent_table\"': relation \"non_existent_table\" does not exist\nLINE 1: SELECT 1 FROM \"non_existent_table\"\n ^\n"} +...ignoring + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check trust_input] ******************* +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'curious.anonymous\"; SELECT * FROM information_schema.tables; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - copy test table data to data_file_txt] *** +changed: [testhost] => {"changed": true, "dst": "/tmp/data.txt", "queries": ["COPY \"acme\" TO '/tmp/data.txt'"], "src": "acme"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check data_file_txt exists and not empty] *** +changed: [testhost] => {"changed": true, "cmd": "head -n 1 /tmp/data.txt", "delta": "0:00:00.002728", "end": "2022-11-29 10:02:40.581233", "msg": "", "rc": 0, "start": "2022-11-29 10:02:40.578505", "stderr": "", "stderr_lines": [], "stdout": "1\tfirst", "stdout_lines": ["1\tfirst"]} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - copy test table data to data_file_csv with options and columns] *** +changed: [testhost] => {"changed": true, "dst": "/tmp/data.csv", "queries": ["COPY \"acme\" (id,name) TO '/tmp/data.csv' (format csv)"], "src": "acme"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check data_file_csv exists and not empty] *** +changed: [testhost] => {"changed": true, "cmd": "head -n 1 /tmp/data.csv", "delta": "0:00:00.002422", "end": "2022-11-29 10:02:41.000089", "msg": "", "rc": 0, "start": "2022-11-29 10:02:40.997667", "stderr": "", "stderr_lines": [], "stdout": "1,first", "stdout_lines": ["1,first"]} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - copy from data_file_csv to test table] *** +changed: [testhost] => {"changed": true, "dst": "acme", "queries": ["COPY \"acme\" (id,name) FROM '/tmp/data.csv' (format csv)"], "src": "/tmp/data.csv"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check that there are two rows in test table after the prev step] *** +ok: [testhost] => {"changed": false, "query": "SELECT * FROM acme WHERE id = '1' AND name = 'first'", "query_all_results": [[{"id": 1, "name": "first"}, {"id": 1, "name": "first"}]], "query_list": ["SELECT * FROM acme WHERE id = '1' AND name = 'first'"], "query_result": [{"id": 1, "name": "first"}, {"id": 1, "name": "first"}], "rowcount": 2, "statusmessage": "SELECT 2"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - test program option, copy to program] *** +changed: [testhost] => {"changed": true, "dst": "/bin/true", "queries": ["COPY \"acme\" (id, name) TO PROGRAM '/bin/true' (delimiter '|')"], "src": "acme"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - test program option, copy from program] *** +changed: [testhost] => {"changed": true, "dst": "acme", "queries": ["COPY \"acme\" (id, name) FROM PROGRAM 'echo 1,first' (delimiter ',')"], "src": "echo 1,first"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - check that there are three rows in test table after the prev step] *** +ok: [testhost] => {"changed": false, "query": "SELECT * FROM acme WHERE id = '1' AND name = 'first'", "query_all_results": [[{"id": 1, "name": "first"}, {"id": 1, "name": "first"}, {"id": 1, "name": "first"}]], "query_list": ["SELECT * FROM acme WHERE id = '1' AND name = 'first'"], "query_result": [{"id": 1, "name": "first"}, {"id": 1, "name": "first"}, {"id": 1, "name": "first"}], "rowcount": 3, "statusmessage": "SELECT 3"} + +TASK [postgresql_copy : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_copy : postgresql_copy - remove test table] ******************* +changed: [testhost] => {"changed": true, "owner": "postgres", "queries": ["DROP TABLE \"acme\""], "state": "absent", "storage_params": [], "table": "acme", "tablespace": ""} + +TASK [postgresql_copy : postgresql_copy - remove test data files] ************** +changed: [testhost] => (item=/tmp/data.csv) => {"ansible_loop_var": "item", "changed": true, "item": "/tmp/data.csv", "path": "/tmp/data.csv", "state": "absent"} +changed: [testhost] => (item=/tmp/data.txt) => {"ansible_loop_var": "item", "changed": true, "item": "/tmp/data.txt", "path": "/tmp/data.txt", "state": "absent"} + +PLAY RECAP ********************************************************************* +testhost : ok=68 changed=34 unreachable=0 failed=0 skipped=16 rescued=0 ignored=4 + +Configuring target inventory. +Running postgresql_db integration test role +Stream command: ansible-playbook postgresql_db-biwr_uhb.yml -i inventory -v +[WARNING]: running playbook inside collection community.postgresql +Using /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/integration.cfg as config file + +PLAY [testhost] **************************************************************** + +TASK [Gathering Facts] ********************************************************* +ok: [testhost] + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 2] ****************************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 3] ****************************************** +ok: [testhost] => {"ansible_facts": {"python_suffix": "-py3"}, "changed": false} + +TASK [setup_postgresql_db : Include distribution and Python version specific variables] *** +ok: [testhost] => {"ansible_facts": {"pg_auto_conf": "{{ pg_dir }}/postgresql.auto.conf", "pg_dir": "/var/lib/postgresql/14/main", "pg_hba_location": "/etc/postgresql/14/main/pg_hba.conf", "pg_ver": 14, "postgis": "postgresql-14-postgis-3", "postgresql_packages": ["apt-utils", "postgresql-14", "postgresql-common", "python3-psycopg2"]}, "ansible_included_var_files": ["/root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-20-py3.yml"], "changed": false} + +TASK [setup_postgresql_db : Make sure the dbus service is enabled under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Make sure the dbus service is started under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : stop postgresql service] *************************** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "stopped", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ActiveEnterTimestampMonotonic": "3433092619", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target basic.target system.slice postgresql@14-main.service systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:02:08 UTC", "AssertTimestampMonotonic": "3433090164", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ConditionTimestampMonotonic": "3433090164", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainExitTimestampMonotonic": "3433092317", "ExecMainPID": "2677", "ExecMainStartTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainStartTimestampMonotonic": "3433091270", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:02:37 UTC] ; stop_time=[Tue 2022-11-29 10:02:37 UTC] ; pid=4125 ; code=exited ; status=0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:02:37 UTC] ; stop_time=[Tue 2022-11-29 10:02:37 UTC] ; pid=4125 ; code=exited ; status=0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "InactiveExitTimestampMonotonic": "3433091447", "InvocationID": "b20ee4f4d56c4137a3a8462bb67661f8", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:02:37 UTC", "StateChangeTimestampMonotonic": "3461953201", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : remove old db (RedHat)] **************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : remove old db config and files (debian)] *********** +changed: [testhost] => (item=/etc/postgresql) => {"ansible_loop_var": "loop_item", "changed": true, "loop_item": "/etc/postgresql", "path": "/etc/postgresql", "state": "absent"} +changed: [testhost] => (item=/var/lib/postgresql) => {"ansible_loop_var": "loop_item", "changed": true, "loop_item": "/var/lib/postgresql", "path": "/var/lib/postgresql", "state": "absent"} + +TASK [setup_postgresql_db : Install wget] ************************************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "echo \"deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" > /etc/apt/sources.list.d/pgdg.list", "delta": "0:00:00.029547", "end": "2022-11-29 10:02:46.748159", "msg": "", "rc": 0, "start": "2022-11-29 10:02:46.718612", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -", "delta": "0:00:00.461631", "end": "2022-11-29 10:02:47.355614", "msg": "", "rc": 0, "start": "2022-11-29 10:02:46.893983", "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)"], "stdout": "OK", "stdout_lines": ["OK"]} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "apt -y update", "delta": "0:00:01.820245", "end": "2022-11-29 10:02:49.323435", "msg": "", "rc": 0, "start": "2022-11-29 10:02:47.503190", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease\nHit:2 http://archive.ubuntu.com/ubuntu focal InRelease\nHit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:4 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease\nHit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease\nReading package lists...\nBuilding dependency tree...\nReading state information...\n36 packages can be upgraded. Run 'apt list --upgradable' to see them.", "stdout_lines": ["Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease", "Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease", "Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease", "Hit:4 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease", "Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease", "Reading package lists...", "Building dependency tree...", "Reading state information...", "36 packages can be upgraded. Run 'apt list --upgradable' to see them."]} + +TASK [setup_postgresql_db : Install locale needed] ***************************** +changed: [testhost] => (item=es_ES) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen es_ES", "delta": "0:00:00.380348", "end": "2022-11-29 10:02:49.859341", "item": "es_ES", "msg": "", "rc": 0, "start": "2022-11-29 10:02:49.478993", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n es_ES.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " es_ES.ISO-8859-1... done", "Generation complete."]} +changed: [testhost] => (item=pt_BR) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen pt_BR", "delta": "0:00:00.382830", "end": "2022-11-29 10:02:50.371908", "item": "pt_BR", "msg": "", "rc": 0, "start": "2022-11-29 10:02:49.989078", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n pt_BR.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " pt_BR.ISO-8859-1... done", "Generation complete."]} + +TASK [setup_postgresql_db : Update locale] ************************************* +changed: [testhost] => {"changed": true, "cmd": "update-locale", "delta": "0:00:00.015732", "end": "2022-11-29 10:02:50.535876", "msg": "", "rc": 0, "start": "2022-11-29 10:02:50.520144", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : install dependencies for postgresql test] ********** +ok: [testhost] => (item=apt-utils) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "apt-utils"} +ok: [testhost] => (item=postgresql-14) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "postgresql-14"} +ok: [testhost] => (item=postgresql-common) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "postgresql-common"} +ok: [testhost] => (item=python3-psycopg2) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "python3-psycopg2"} + +TASK [setup_postgresql_db : Initialize postgres (RedHat systemd)] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (RedHat sysv)] ***************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (Debian)] ********************** +changed: [testhost] => {"changed": true, "cmd": ". /usr/share/postgresql-common/maintscripts-functions && set_system_locale && /usr/bin/pg_createcluster -u postgres 14 main", "delta": "0:00:03.207353", "end": "2022-11-29 10:02:56.975545", "msg": "", "rc": 0, "start": "2022-11-29 10:02:53.768192", "stderr": "", "stderr_lines": [], "stdout": "Creating new PostgreSQL cluster 14/main ...\n/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions\nThe files belonging to this database system will be owned by user \"postgres\".\nThis user must also own the server process.\n\nThe database cluster will be initialized with locale \"C.UTF-8\".\nThe default database encoding has accordingly been set to \"UTF8\".\nThe default text search configuration will be set to \"english\".\n\nData page checksums are disabled.\n\nfixing permissions on existing directory /var/lib/postgresql/14/main ... ok\ncreating subdirectories ... ok\nselecting dynamic shared memory implementation ... posix\nselecting default max_connections ... 100\nselecting default shared_buffers ... 128MB\nselecting default time zone ... Etc/UTC\ncreating configuration files ... ok\nrunning bootstrap script ... ok\nperforming post-bootstrap initialization ... ok\nsyncing data to disk ... ok\nVer Cluster Port Status Owner Data directory Log file\n14 main 5432 down postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log", "stdout_lines": ["Creating new PostgreSQL cluster 14/main ...", "/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions", "The files belonging to this database system will be owned by user \"postgres\".", "This user must also own the server process.", "", "The database cluster will be initialized with locale \"C.UTF-8\".", "The default database encoding has accordingly been set to \"UTF8\".", "The default text search configuration will be set to \"english\".", "", "Data page checksums are disabled.", "", "fixing permissions on existing directory /var/lib/postgresql/14/main ... ok", "creating subdirectories ... ok", "selecting dynamic shared memory implementation ... posix", "selecting default max_connections ... 100", "selecting default shared_buffers ... 128MB", "selecting default time zone ... Etc/UTC", "creating configuration files ... ok", "running bootstrap script ... ok", "performing post-bootstrap initialization ... ok", "syncing data to disk ... ok", "Ver Cluster Port Status Owner Data directory Log file", "14 main 5432 down postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log"]} + +TASK [setup_postgresql_db : Copy pg_hba into place] **************************** +changed: [testhost] => {"changed": true, "checksum": "ee5e714afec7113d11e2aca167bd08ba0eb2bd32", "dest": "/etc/postgresql/14/main/pg_hba.conf", "gid": 0, "group": "root", "md5sum": "ac04fb305309e15b41c01dd5d3d6ca6d", "mode": "0644", "owner": "postgres", "size": 470, "src": "/root/.ansible/tmp/ansible-tmp-1669716177.0143921-426-122166340251364/source", "state": "file", "uid": 105} + +TASK [setup_postgresql_db : Install langpacks (RHEL8)] ************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Check if locales need to be generated (RedHat)] **** +skipping: [testhost] => (item=es_ES) => {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=pt_BR) => {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Reinstall internationalization files] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Generate locale (RedHat)] ************************** +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'es_ES', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'pt_BR', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Install glibc langpacks (Fedora >= 24)] ************ +skipping: [testhost] => (item=glibc-langpack-es) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-es", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=glibc-langpack-pt) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-pt", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : start postgresql service] ************************** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ActiveEnterTimestampMonotonic": "3433092619", "ActiveExitTimestamp": "Tue 2022-11-29 10:02:45 UTC", "ActiveExitTimestampMonotonic": "3469252910", "ActiveState": "inactive", "After": "systemd-journald.socket sysinit.target basic.target postgresql@14-main.service system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:02:08 UTC", "AssertTimestampMonotonic": "3433090164", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ConditionTimestampMonotonic": "3433090164", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainExitTimestampMonotonic": "3433092317", "ExecMainPID": "2677", "ExecMainStartTimestamp": "Tue 2022-11-29 10:02:08 UTC", "ExecMainStartTimestampMonotonic": "3433091270", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:02:45 UTC", "InactiveEnterTimestampMonotonic": "3469252910", "InactiveExitTimestamp": "Tue 2022-11-29 10:02:08 UTC", "InactiveExitTimestampMonotonic": "3433091447", "InvocationID": "b20ee4f4d56c4137a3a8462bb67661f8", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:02:45 UTC", "StateChangeTimestampMonotonic": "3469252910", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : Pause between start and stop] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:03:00.239503", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:03:05.239744", "user_input": ""} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Stop postgresql service] *************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Pause between stop and start] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:03:05.331764", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:03:10.331982", "user_input": ""} + +TASK [setup_postgresql_db : Start postgresql service] ************************** +ok: [testhost] => {"changed": false, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ActiveEnterTimestampMonotonic": "3484287029", "ActiveExitTimestamp": "Tue 2022-11-29 10:02:45 UTC", "ActiveExitTimestampMonotonic": "3469252910", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target postgresql@14-main.service system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:03:00 UTC", "AssertTimestampMonotonic": "3484279051", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ConditionTimestampMonotonic": "3484279050", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ExecMainExitTimestampMonotonic": "3484285853", "ExecMainPID": "5032", "ExecMainStartTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ExecMainStartTimestampMonotonic": "3484281937", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:03:00 UTC] ; stop_time=[Tue 2022-11-29 10:03:00 UTC] ; pid=5032 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:03:00 UTC] ; stop_time=[Tue 2022-11-29 10:03:00 UTC] ; pid=5032 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:02:45 UTC", "InactiveEnterTimestampMonotonic": "3469252910", "InactiveExitTimestamp": "Tue 2022-11-29 10:03:00 UTC", "InactiveExitTimestampMonotonic": "3484282585", "InvocationID": "07f86601b5dd4eb5a2245ae7a78eb465", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:03:00 UTC", "StateChangeTimestampMonotonic": "3484287029", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : copy control file for dummy ext] ******************* +ok: [testhost] => {"changed": false, "checksum": "de37beb34a4765b0b07dc249c7866f1e0e7351fa", "dest": "/usr/share/postgresql/14/extension/dummy.control", "gid": 0, "group": "root", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy.control", "size": 114, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : copy version files for dummy ext] ****************** +ok: [testhost] => (item=dummy--0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "8f073962a56e90e49c0d8f7985497cd1b51506e2", "dest": "/usr/share/postgresql/14/extension/dummy--0.sql", "gid": 0, "group": "root", "item": "dummy--0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--0.sql", "size": 108, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--1.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "a2b62264e8d532f9217b439b11c8c366dea14dc6", "dest": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "size": 110, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--2.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "f6839f9b1988bb8b594b50b4f85c7a52fc770d9d", "dest": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "size": 110, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--3.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "a5875ba65c676f96c2f3527a2ef0c495e77a9a72", "dest": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "gid": 0, "group": "root", "item": "dummy--3.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "size": 110, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : add update paths] ********************************** +changed: [testhost] => (item=dummy--0--1.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--0--1.0.sql", "gid": 0, "group": "root", "item": "dummy--0--1.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--1.0--2.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--1.0--2.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0--2.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--2.0--3.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--2.0--3.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0--3.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : Get PostgreSQL version] **************************** +[WARNING]: Unable to use /var/lib/postgresql/.ansible/tmp as temporary +directory, failing back to system: [Errno 13] Permission denied: +'/var/lib/postgresql/.ansible' +changed: [testhost] => {"changed": true, "cmd": "echo 'SHOW SERVER_VERSION' | psql --tuples-only --no-align --dbname postgres", "delta": "0:00:00.035012", "end": "2022-11-29 10:03:12.754916", "msg": "", "rc": 0, "start": "2022-11-29 10:03:12.719904", "stderr": "", "stderr_lines": [], "stdout": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "stdout_lines": ["14.6 (Ubuntu 14.6-1.pgdg20.04+1)"]} + +TASK [setup_postgresql_db : Print PostgreSQL server version] ******************* +ok: [testhost] => { + "msg": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)" +} + +TASK [setup_postgresql_db : postgresql SSL - create database] ****************** +changed: [testhost] => {"changed": true, "db": "ssl_db", "executed_commands": ["CREATE DATABASE \"ssl_db\""]} + +TASK [setup_postgresql_db : postgresql SSL - create role] ********************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ssl_user\" WITH ENCRYPTED PASSWORD %(password)s SUPERUSER"], "user": "ssl_user"} + +TASK [setup_postgresql_db : postgresql SSL - install openssl] ****************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_db : postgresql SSL - create certs 1] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl req -new -nodes -text -out ~postgres/root.csr -keyout ~postgres/root.key -subj \"/CN=localhost.local\"", "delta": "0:00:00.021761", "end": "2022-11-29 10:03:15.167825", "msg": "", "rc": 0, "start": "2022-11-29 10:03:15.146064", "stderr": "Generating a RSA private key\n..........+++++\n...+++++\nwriting new private key to '/var/lib/postgresql/root.key'\n-----", "stderr_lines": ["Generating a RSA private key", "..........+++++", "...+++++", "writing new private key to '/var/lib/postgresql/root.key'", "-----"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 2] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl x509 -req -in ~postgres/root.csr -text -days 3650 -extensions v3_ca -signkey ~postgres/root.key -out ~postgres/root.crt", "delta": "0:00:00.005734", "end": "2022-11-29 10:03:15.334130", "msg": "", "rc": 0, "start": "2022-11-29 10:03:15.328396", "stderr": "Signature ok\nsubject=CN = localhost.local\nGetting Private key", "stderr_lines": ["Signature ok", "subject=CN = localhost.local", "Getting Private key"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 3] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl req -new -nodes -text -out ~postgres/server.csr -keyout ~postgres/server.key -subj \"/CN=localhost.local\"", "delta": "0:00:00.045031", "end": "2022-11-29 10:03:15.532436", "msg": "", "rc": 0, "start": "2022-11-29 10:03:15.487405", "stderr": "Generating a RSA private key\n...........................+++++\n..........+++++\nwriting new private key to '/var/lib/postgresql/server.key'\n-----", "stderr_lines": ["Generating a RSA private key", "...........................+++++", "..........+++++", "writing new private key to '/var/lib/postgresql/server.key'", "-----"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 4] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl x509 -req -in ~postgres/server.csr -text -days 365 -CA ~postgres/root.crt -CAkey ~postgres/root.key -CAcreateserial -out server.crt", "delta": "0:00:00.005957", "end": "2022-11-29 10:03:15.689678", "msg": "", "rc": 0, "start": "2022-11-29 10:03:15.683721", "stderr": "Signature ok\nsubject=CN = localhost.local\nGetting CA Private Key", "stderr_lines": ["Signature ok", "subject=CN = localhost.local", "Getting CA Private Key"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - set right permissions to files] *** +changed: [testhost] => (item=~postgres/root.key) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/root.key", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/root.key", "size": 1704, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/server.key) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/server.key", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/server.key", "size": 1704, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/root.crt) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/root.crt", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/root.crt", "size": 2745, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/server.csr) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/server.csr", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/server.csr", "size": 3336, "state": "file", "uid": 105} + +TASK [setup_postgresql_db : postgresql SSL - enable SSL] *********************** +ok: [testhost] => {"changed": false, "context": "sighup", "name": "ssl", "prev_val_pretty": "on", "restart_required": false, "value": {"unit": null, "value": "on"}, "value_pretty": "on"} + +TASK [setup_postgresql_db : postgresql SSL - reload PostgreSQL to enable ssl on] *** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ActiveEnterTimestampMonotonic": "3484287029", "ActiveExitTimestamp": "Tue 2022-11-29 10:02:45 UTC", "ActiveExitTimestampMonotonic": "3469252910", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target postgresql@14-main.service system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:03:00 UTC", "AssertTimestampMonotonic": "3484279051", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ConditionTimestampMonotonic": "3484279050", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ExecMainExitTimestampMonotonic": "3484285853", "ExecMainPID": "5032", "ExecMainStartTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ExecMainStartTimestampMonotonic": "3484281937", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:03:00 UTC] ; stop_time=[Tue 2022-11-29 10:03:00 UTC] ; pid=5032 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:03:00 UTC] ; stop_time=[Tue 2022-11-29 10:03:00 UTC] ; pid=5032 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:02:45 UTC", "InactiveEnterTimestampMonotonic": "3469252910", "InactiveExitTimestamp": "Tue 2022-11-29 10:03:00 UTC", "InactiveExitTimestampMonotonic": "3484282585", "InvocationID": "07f86601b5dd4eb5a2245ae7a78eb465", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:03:00 UTC", "StateChangeTimestampMonotonic": "3484287029", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [postgresql_db : Check that becoming an non-existing user throws an error] *** +An exception occurred during task execution. To see the full traceback, use -vvv. The error was: psycopg2.errors.InvalidParameterValue: role "session_role1" does not exist +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Could not switch role: role \"session_role1\" does not exist\n"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Create a high privileged user] *************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"session_role1\" WITH ENCRYPTED PASSWORD %(********)s CREATEDB CREATEROLE LOGIN"], "user": "session_role1"} + +TASK [postgresql_db : Create a low privileged user using the newly created user] *** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"session_role2\" WITH ENCRYPTED PASSWORD %(********)s LOGIN"], "user": "session_role2"} + +TASK [postgresql_db : Create DB as session_role] ******************************* +changed: [testhost] => {"changed": true, "db": "session_role1", "executed_commands": ["CREATE DATABASE \"session_role1\""]} + +TASK [postgresql_db : Check that database created and is owned by correct user] *** +changed: [testhost] => {"changed": true, "cmd": "echo \"select rolname from pg_database join pg_roles on datdba = pg_roles.oid where datname = 'session_role1';\" | psql -AtXq postgres", "delta": "0:00:00.037794", "end": "2022-11-29 10:03:18.782833", "msg": "", "rc": 0, "start": "2022-11-29 10:03:18.745039", "stderr": "", "stderr_lines": [], "stdout": "session_role1", "stdout_lines": ["session_role1"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Fail when creating database as low privileged user] ****** +An exception occurred during task execution. To see the full traceback, use -vvv. The error was: psycopg2.errors.InsufficientPrivilege: permission denied to create database +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Database query failed: permission denied to create database\n"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Drop test db] ******************************************** +changed: [testhost] => {"changed": true, "db": "session_role1", "executed_commands": ["DROP DATABASE \"session_role1\""]} + +TASK [postgresql_db : Create DB] *********************************************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\""]} + +TASK [postgresql_db : assert that module reports the db was created] *********** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that database created] ***************************** +changed: [testhost] => {"changed": true, "cmd": "echo \"select datname from pg_database where datname = 'ansible_db';\" | psql -d postgres", "delta": "0:00:00.042301", "end": "2022-11-29 10:03:20.733550", "msg": "", "rc": 0, "start": "2022-11-29 10:03:20.691249", "stderr": "", "stderr_lines": [], "stdout": " datname \n------------\n ansible_db\n(1 row)", "stdout_lines": [" datname ", "------------", " ansible_db", "(1 row)"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Run create on an already created db] ********************* +ok: [testhost] => {"changed": false, "db": "ansible_db", "executed_commands": []} + +TASK [postgresql_db : assert that module reports the db was unchanged] ********* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Destroy DB] ********************************************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : assert that module reports the db was changed] *********** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that database was destroyed] *********************** +changed: [testhost] => {"changed": true, "cmd": "echo \"select datname from pg_database where datname = 'ansible_db';\" | psql -d postgres", "delta": "0:00:00.033359", "end": "2022-11-29 10:03:21.468531", "msg": "", "rc": 0, "start": "2022-11-29 10:03:21.435172", "stderr": "", "stderr_lines": [], "stdout": " datname \n---------\n(0 rows)", "stdout_lines": [" datname ", "---------", "(0 rows)"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Destroy DB] ********************************************** +ok: [testhost] => {"changed": false, "db": "ansible_db", "executed_commands": []} + +TASK [postgresql_db : assert that removing an already removed db makes no change] *** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Create a DB with conn_limit, encoding, collate, ctype, and template options] *** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" TEMPLATE \"template0\" ENCODING 'LATIN1' LC_COLLATE 'pt_BR' LC_CTYPE 'es_ES' CONNECTION LIMIT 100"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that the DB has all of our options] **************** +changed: [testhost] => {"changed": true, "cmd": "echo \"select datname, datconnlimit, pg_encoding_to_char(encoding), datcollate, datctype from pg_database where datname = 'ansible_db';\" | psql -d postgres", "delta": "0:00:00.032637", "end": "2022-11-29 10:03:22.977910", "msg": "", "rc": 0, "start": "2022-11-29 10:03:22.945273", "stderr": "", "stderr_lines": [], "stdout": " datname | datconnlimit | pg_encoding_to_char | datcollate | datctype \n------------+--------------+---------------------+------------+----------\n ansible_db | 100 | LATIN1 | pt_BR | es_ES\n(1 row)", "stdout_lines": [" datname | datconnlimit | pg_encoding_to_char | datcollate | datctype ", "------------+--------------+---------------------+------------+----------", " ansible_db | 100 | LATIN1 | pt_BR | es_ES", "(1 row)"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that running db creation with options a second time does nothing] *** +ok: [testhost] => {"changed": false, "db": "ansible_db", "executed_commands": []} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that attempting to change encoding returns an error] *** +An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NotSupportedError: Changing database encoding is not supported. Current encoding: LATIN1 +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Changing database encoding is not supported. Current encoding: LATIN1"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that changing the conn_limit actually works] ******* +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["ALTER DATABASE \"ansible_db\" CONNECTION LIMIT 200"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that conn_limit has actually been set / updated to 200] *** +changed: [testhost] => {"changed": true, "cmd": "echo \"SELECT datconnlimit AS conn_limit FROM pg_database WHERE datname = 'ansible_db';\" | psql -d postgres", "delta": "0:00:00.032620", "end": "2022-11-29 10:03:23.864281", "msg": "", "rc": 0, "start": "2022-11-29 10:03:23.831661", "stderr": "", "stderr_lines": [], "stdout": " conn_limit \n------------\n 200\n(1 row)", "stdout_lines": [" conn_limit ", "------------", " 200", "(1 row)"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Cleanup test DB] ***************************************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : shell] *************************************************** +changed: [testhost] => {"changed": true, "cmd": "echo \"select datname, pg_encoding_to_char(encoding), datcollate, datctype from pg_database where datname = 'ansible_db';\" | psql -d postgres", "delta": "0:00:00.031693", "end": "2022-11-29 10:03:24.311851", "msg": "", "rc": 0, "start": "2022-11-29 10:03:24.280158", "stderr": "", "stderr_lines": [], "stdout": " datname | pg_encoding_to_char | datcollate | datctype \n---------+---------------------+------------+----------\n(0 rows)", "stdout_lines": [" datname | pg_encoding_to_char | datcollate | datctype ", "---------+---------------------+------------+----------", "(0 rows)"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Create an unprivileged user to own a DB] ***************** +changed: [testhost] => (item=ansible.db.user1) => {"ansible_loop_var": "item", "changed": true, "item": "ansible.db.user1", "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(password)s "], "user": "ansible.db.user1", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=ansible.db.user2) => {"ansible_loop_var": "item", "changed": true, "item": "ansible.db.user2", "queries": ["CREATE USER \"ansible.db.user2\" WITH ENCRYPTED PASSWORD %(password)s "], "user": "ansible.db.user2", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_db : Create db with user ownership] *************************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that the user owns the newly created DB] *********** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_catalog.pg_database WHERE datname = 'ansible_db' AND pg_catalog.pg_get_userbyid(datdba) = 'ansible.db.user1'\n", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_catalog.pg_database WHERE datname = 'ansible_db' AND pg_catalog.pg_get_userbyid(datdba) = 'ansible.db.user1'\n"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Change the owner on an existing db, username with dots] *** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["ALTER DATABASE \"ansible_db\" OWNER TO \"ansible.db.user2\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check the previous step] ********************************* +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_catalog.pg_database WHERE datname = 'ansible_db' AND pg_catalog.pg_get_userbyid(datdba) = 'ansible.db.user2'\n", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_catalog.pg_database WHERE datname = 'ansible_db' AND pg_catalog.pg_get_userbyid(datdba) = 'ansible.db.user2'\n"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Change the owner on an existing db] ********************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["ALTER DATABASE \"ansible_db\" OWNER TO \"postgres\""]} + +TASK [postgresql_db : assert that ansible says it changed the db] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that the user owns the newly created DB] *********** +changed: [testhost] => {"changed": true, "cmd": "echo \"select pg_catalog.pg_get_userbyid(datdba) from pg_catalog.pg_database where datname = 'ansible_db';\" | psql -d postgres", "delta": "0:00:00.032748", "end": "2022-11-29 10:03:27.015079", "msg": "", "rc": 0, "start": "2022-11-29 10:03:26.982331", "stderr": "", "stderr_lines": [], "stdout": " pg_get_userbyid \n-----------------\n postgres\n(1 row)", "stdout_lines": [" pg_get_userbyid ", "-----------------", " postgres", "(1 row)"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Cleanup db] ********************************************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : Check that database was destroyed] *********************** +changed: [testhost] => {"changed": true, "cmd": "echo \"select datname from pg_database where datname = 'ansible_db';\" | psql -d postgres", "delta": "0:00:00.032787", "end": "2022-11-29 10:03:27.459819", "msg": "", "rc": 0, "start": "2022-11-29 10:03:27.427032", "stderr": "", "stderr_lines": [], "stdout": " datname \n---------\n(0 rows)", "stdout_lines": [" datname ", "---------", "(0 rows)"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Cleanup test user] *************************************** +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Check that they were removed] **************************** +changed: [testhost] => {"changed": true, "cmd": "echo \"select * from pg_user where usename='ansible.db.user1';\" | psql -d postgres", "delta": "0:00:00.036199", "end": "2022-11-29 10:03:27.882101", "msg": "", "rc": 0, "start": "2022-11-29 10:03:27.845902", "stderr": "", "stderr_lines": [], "stdout": " usename | usesysid | usecreatedb | usesuper | userepl | usebypassrls | passwd | valuntil | useconfig \n---------+----------+-------------+----------+---------+--------------+--------+----------+-----------\n(0 rows)", "stdout_lines": [" usename | usesysid | usecreatedb | usesuper | userepl | usebypassrls | passwd | valuntil | useconfig ", "---------+----------+-------------+----------+---------+--------------+--------+----------+-----------", "(0 rows)"]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db - drop dir for test tablespace] ************ +ok: [testhost] => {"changed": false, "path": "/ssd", "state": "absent"} + +TASK [postgresql_db : postgresql_db - disable selinux] ************************* +fatal: [testhost]: FAILED! => {"changed": true, "cmd": "setenforce 0", "delta": "0:00:00.002087", "end": "2022-11-29 10:03:28.215101", "msg": "non-zero return code", "rc": 127, "start": "2022-11-29 10:03:28.213014", "stderr": "/bin/sh: 1: setenforce: not found", "stderr_lines": ["/bin/sh: 1: setenforce: not found"], "stdout": "", "stdout_lines": []} +...ignoring + +TASK [postgresql_db : postgresql_db - create dir for test tablespace] ********** +changed: [testhost] => {"changed": true, "gid": 108, "group": "postgres", "mode": "0700", "owner": "postgres", "path": "/ssd", "size": 4096, "state": "directory", "uid": 105} + +TASK [postgresql_db : postgresql_db_ - create a new tablespace] **************** +changed: [testhost] => {"changed": true, "location": "/ssd", "options": {}, "owner": "postgres", "queries": ["CREATE TABLESPACE \"bar\" LOCATION '/ssd'"], "state": "present", "tablespace": "bar"} + +TASK [postgresql_db : postgresql_db_tablespace - Create DB with tablespace option in check mode] *** +changed: [testhost] => {"changed": true, "db": "acme", "executed_commands": []} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - Check actual DB tablespace, rowcount must be 0 because actually nothing changed] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_database AS d JOIN pg_tablespace AS t ON d.dattablespace = t.oid WHERE d.datname = 'acme' AND t.spcname = 'bar'\n", "query_all_results": [[]], "query_list": ["SELECT 1 FROM pg_database AS d JOIN pg_tablespace AS t ON d.dattablespace = t.oid WHERE d.datname = 'acme' AND t.spcname = 'bar'\n"], "query_result": [], "rowcount": 0, "statusmessage": "SELECT 0"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - Create DB with tablespace option] *** +changed: [testhost] => {"changed": true, "db": "acme", "executed_commands": ["CREATE DATABASE \"acme\" TABLESPACE \"bar\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - Check actual DB tablespace, rowcount must be 1] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_database AS d JOIN pg_tablespace AS t ON d.dattablespace = t.oid WHERE d.datname = 'acme' AND t.spcname = 'bar'\n", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_database AS d JOIN pg_tablespace AS t ON d.dattablespace = t.oid WHERE d.datname = 'acme' AND t.spcname = 'bar'\n"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - The same DB with tablespace option again] *** +ok: [testhost] => {"changed": false, "db": "acme", "executed_commands": []} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - Change tablespace in check_mode] *** +changed: [testhost] => {"changed": true, "db": "acme", "executed_commands": []} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - Check actual DB tablespace, rowcount must be 1 because actually nothing changed] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_database AS d JOIN pg_tablespace AS t ON d.dattablespace = t.oid WHERE d.datname = 'acme' AND t.spcname = 'bar'\n", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_database AS d JOIN pg_tablespace AS t ON d.dattablespace = t.oid WHERE d.datname = 'acme' AND t.spcname = 'bar'\n"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - Change tablespace in actual mode] *** +changed: [testhost] => {"changed": true, "db": "acme", "executed_commands": ["ALTER DATABASE \"acme\" SET TABLESPACE \"pg_default\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - Check actual DB tablespace, rowcount must be 1] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_database AS d JOIN pg_tablespace AS t ON d.dattablespace = t.oid WHERE d.datname = 'acme' AND t.spcname = 'pg_default'\n", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_database AS d JOIN pg_tablespace AS t ON d.dattablespace = t.oid WHERE d.datname = 'acme' AND t.spcname = 'pg_default'\n"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : postgresql_db_tablespace - Drop test DB] ***************** +changed: [testhost] => {"changed": true, "db": "acme", "executed_commands": ["DROP DATABASE \"acme\""]} + +TASK [postgresql_db : postgresql_db_tablespace - Remove tablespace] ************ +changed: [testhost] => {"changed": true, "location": "/ssd", "options": {}, "owner": "postgres", "queries": ["DROP TABLESPACE \"bar\""], "state": "absent", "tablespace": "bar"} + +TASK [postgresql_db : Miss target option, must fail] *************************** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "The \"target\" option must be defined when the \"rename\" option is used."} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Target and name options are the same, must fail] ********* +fatal: [testhost]: FAILED! => {"changed": false, "msg": "The \"name/db\" option and the \"target\" option cannot be the same."} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Maintenance_db and name options are the same, must fail] *** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "The \"maintenance_db\" option and the \"name/db\" option cannot be the same."} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Try to rename when both do not exist, must fail] ********* +fatal: [testhost]: FAILED! => {"changed": false, "msg": "The source and the target databases do not exist."} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Try to rename when both do not exist, must fail, check_mode] *** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "The source and the target databases do not exist."} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Create test DBs] ***************************************** +changed: [testhost] => (item=acme) => {"ansible_loop_var": "item", "changed": true, "db": "acme", "executed_commands": ["CREATE DATABASE \"acme\""], "item": "acme", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=acme1) => {"ansible_loop_var": "item", "changed": true, "db": "acme1", "executed_commands": ["CREATE DATABASE \"acme1\""], "item": "acme1", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_db : Try to rename when both exist, must fail] **************** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Both the source and the target databases exist."} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Try to rename when both exist, must fail] **************** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Both the source and the target databases exist."} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Drop the target DB] ************************************** +changed: [testhost] => {"changed": true, "db": "acme1", "executed_commands": ["DROP DATABASE \"acme1\""]} + +TASK [postgresql_db : Rename DB in check mode] ********************************* +changed: [testhost] => {"changed": true, "db": "acme", "executed_commands": []} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that nothing really happened] ********************** +[WARNING]: Database name has not been passed, used default database to connect +to. +ok: [testhost] => {"changed": false, "query": "SELECT * FROM pg_database WHERE datname = 'acme'", "query_all_results": [[{"datacl": null, "datallowconn": true, "datcollate": "C.UTF-8", "datconnlimit": -1, "datctype": "C.UTF-8", "datdba": 10, "datfrozenxid": "726", "datistemplate": false, "datlastsysoid": 13730, "datminmxid": "1", "datname": "acme", "dattablespace": 1663, "encoding": 6, "oid": 16396}]], "query_list": ["SELECT * FROM pg_database WHERE datname = 'acme'"], "query_result": [{"datacl": null, "datallowconn": true, "datcollate": "C.UTF-8", "datconnlimit": -1, "datctype": "C.UTF-8", "datdba": 10, "datfrozenxid": "726", "datistemplate": false, "datlastsysoid": 13730, "datminmxid": "1", "datname": "acme", "dattablespace": 1663, "encoding": 6, "oid": 16396}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check that nothing really happened] ********************** +ok: [testhost] => {"changed": false, "query": "SELECT * FROM pg_database WHERE datname = 'acme1'", "query_all_results": [[]], "query_list": ["SELECT * FROM pg_database WHERE datname = 'acme1'"], "query_result": [], "rowcount": 0, "statusmessage": "SELECT 0"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Rename DB in actual mode] ******************************** +changed: [testhost] => {"changed": true, "db": "acme", "executed_commands": ["ALTER DATABASE \"acme\" RENAME TO \"acme1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check the changes have been made] ************************ +ok: [testhost] => {"changed": false, "query": "SELECT * FROM pg_database WHERE datname = 'acme'", "query_all_results": [[]], "query_list": ["SELECT * FROM pg_database WHERE datname = 'acme'"], "query_result": [], "rowcount": 0, "statusmessage": "SELECT 0"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check the changes have been made] ************************ +ok: [testhost] => {"changed": false, "query": "SELECT * FROM pg_database WHERE datname = 'acme1'", "query_all_results": [[{"datacl": null, "datallowconn": true, "datcollate": "C.UTF-8", "datconnlimit": -1, "datctype": "C.UTF-8", "datdba": 10, "datfrozenxid": "726", "datistemplate": false, "datlastsysoid": 13730, "datminmxid": "1", "datname": "acme1", "dattablespace": 1663, "encoding": 6, "oid": 16396}]], "query_list": ["SELECT * FROM pg_database WHERE datname = 'acme1'"], "query_result": [{"datacl": null, "datallowconn": true, "datcollate": "C.UTF-8", "datconnlimit": -1, "datctype": "C.UTF-8", "datdba": 10, "datfrozenxid": "726", "datistemplate": false, "datlastsysoid": 13730, "datminmxid": "1", "datname": "acme1", "dattablespace": 1663, "encoding": 6, "oid": 16396}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Try to rename same DBs again in check mode] ************** +ok: [testhost] => {"changed": false, "db": "acme", "executed_commands": []} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Try to rename same DBs again in actual mode] ************* +ok: [testhost] => {"changed": false, "db": "acme", "executed_commands": []} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check the state is the same] ***************************** +ok: [testhost] => {"changed": false, "query": "SELECT * FROM pg_database WHERE datname = 'acme'", "query_all_results": [[]], "query_list": ["SELECT * FROM pg_database WHERE datname = 'acme'"], "query_result": [], "rowcount": 0, "statusmessage": "SELECT 0"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Check the state is the same] ***************************** +ok: [testhost] => {"changed": false, "query": "SELECT * FROM pg_database WHERE datname = 'acme1'", "query_all_results": [[{"datacl": null, "datallowconn": true, "datcollate": "C.UTF-8", "datconnlimit": -1, "datctype": "C.UTF-8", "datdba": 10, "datfrozenxid": "726", "datistemplate": false, "datlastsysoid": 13730, "datminmxid": "1", "datname": "acme1", "dattablespace": 1663, "encoding": 6, "oid": 16396}]], "query_list": ["SELECT * FROM pg_database WHERE datname = 'acme1'"], "query_result": [{"datacl": null, "datallowconn": true, "datcollate": "C.UTF-8", "datconnlimit": -1, "datctype": "C.UTF-8", "datdba": 10, "datfrozenxid": "726", "datistemplate": false, "datlastsysoid": 13730, "datminmxid": "1", "datname": "acme1", "dattablespace": 1663, "encoding": 6, "oid": 16396}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : Remove test DB] ****************************************** +changed: [testhost] => {"changed": true, "db": "acme1", "executed_commands": ["DROP DATABASE \"acme1\""]} + +TASK [postgresql_db : include_tasks] ******************************************* +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.sql) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.sql.gz) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.sql.bz2) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.sql.xz) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.tar) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.tar.gz) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.tar.bz2) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.tar.xz) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.pgc) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.dir) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.dir.gz) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.dir.bz2) +included: /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_db-any9v8e_-ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_db/tasks/state_dump_restore.yml for testhost => (item=dbdata.dir.xz) + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s CREATEROLE LOGIN CREATEDB"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.sql"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.043072", "end": "2022-11-29 10:03:41.441280", "msg": "", "rc": 0, "start": "2022-11-29 10:03:41.398208", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.041744", "end": "2022-11-29 10:03:41.623187", "msg": "", "rc": 0, "start": "2022-11-29 10:03:41.581443", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.sql", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public > /tmp/dbdata.sql", "executed_commands": ["/usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public > /tmp/dbdata.sql"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.sql"], "delta": "0:00:00.005455", "end": "2022-11-29 10:03:42.228801", "msg": "", "rc": 0, "start": "2022-11-29 10:03:42.223346", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.sql: ASCII text", "stdout_lines": ["/tmp/dbdata.sql: ASCII text"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/psql --dbname=ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --file=/tmp/dbdata.sql -n public < /tmp/dbdata.sql", "executed_commands": ["/usr/bin/psql --dbname=ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --file=/tmp/dbdata.sql -n public < /tmp/dbdata.sql"], "msg": "SET\nSET\nSET\nSET\nSET\n set_config \n------------\n \n(1 row)\n\nSET\nSET\nSET\nSET\nALTER SCHEMA\nSET\nSET\nCREATE TABLE\nALTER TABLE\nCOPY 1\n", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\npsql:/tmp/dbdata.sql:23: ERROR: schema \"public\" already exists\npsql:/tmp/dbdata.sql:32: ERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "psql:/tmp/dbdata.sql:23: ERROR: schema \"public\" already exists", "psql:/tmp/dbdata.sql:32: ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.037857", "end": "2022-11-29 10:03:44.074716", "msg": "", "rc": 0, "start": "2022-11-29 10:03:44.036859", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/psql --dbname=db.name --host=localhost --port=5432 --username=ansible.db.user1 --file=/tmp/dbdata.sql -n public < /tmp/dbdata.sql", "executed_commands": ["/usr/bin/psql --dbname=db.name --host=localhost --port=5432 --username=ansible.db.user1 --file=/tmp/dbdata.sql -n public < /tmp/dbdata.sql"], "msg": "SET\nSET\nSET\nSET\nSET\n set_config \n------------\n \n(1 row)\n\nSET\nSET\nSET\nSET\nALTER SCHEMA\nSET\nSET\nCREATE TABLE\nALTER TABLE\nCOPY 1\n", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\npsql:/tmp/dbdata.sql:23: ERROR: permission denied for database db.name\npsql:/tmp/dbdata.sql:32: ERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "psql:/tmp/dbdata.sql:23: ERROR: permission denied for database db.name", "psql:/tmp/dbdata.sql:32: ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.sql", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s CREATEDB LOGIN CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.sql.gz"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.043765", "end": "2022-11-29 10:03:48.386798", "msg": "", "rc": 0, "start": "2022-11-29 10:03:48.343033", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.039256", "end": "2022-11-29 10:03:48.568414", "msg": "", "rc": 0, "start": "2022-11-29 10:03:48.529158", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.sql.gz", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/gzip /tmp/dbdata.sql.gz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716228.899016-aab1wr6h/pg_fifo", "executed_commands": ["/usr/bin/gzip /tmp/dbdata.sql.gz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716228.899016-aab1wr6h/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.sql.gz"], "delta": "0:00:00.002786", "end": "2022-11-29 10:03:49.172524", "msg": "", "rc": 0, "start": "2022-11-29 10:03:49.169738", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.sql.gz: gzip compressed data, from Unix, original size modulo 2^32 1250", "stdout_lines": ["/tmp/dbdata.sql.gz: gzip compressed data, from Unix, original size modulo 2^32 1250"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.039383", "end": "2022-11-29 10:03:51.003764", "msg": "", "rc": 0, "start": "2022-11-29 10:03:50.964381", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.sql.gz", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s CREATEDB LOGIN CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.sql.bz2"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.042441", "end": "2022-11-29 10:03:55.369524", "msg": "", "rc": 0, "start": "2022-11-29 10:03:55.327083", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.039130", "end": "2022-11-29 10:03:55.554910", "msg": "", "rc": 0, "start": "2022-11-29 10:03:55.515780", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.sql.bz2", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/bzip2 /tmp/dbdata.sql.bz2 & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716235.8817296-kg2qmz48/pg_fifo", "executed_commands": ["/usr/bin/bzip2 /tmp/dbdata.sql.bz2 & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716235.8817296-kg2qmz48/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.sql.bz2"], "delta": "0:00:00.002620", "end": "2022-11-29 10:03:56.154019", "msg": "", "rc": 0, "start": "2022-11-29 10:03:56.151399", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.sql.bz2: bzip2 compressed data, block size = 900k", "stdout_lines": ["/tmp/dbdata.sql.bz2: bzip2 compressed data, block size = 900k"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.037937", "end": "2022-11-29 10:03:58.057947", "msg": "", "rc": 0, "start": "2022-11-29 10:03:58.020010", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.sql.bz2", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s CREATEROLE LOGIN CREATEDB"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.sql.xz"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.040706", "end": "2022-11-29 10:04:02.427561", "msg": "", "rc": 0, "start": "2022-11-29 10:04:02.386855", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.041572", "end": "2022-11-29 10:04:02.617091", "msg": "", "rc": 0, "start": "2022-11-29 10:04:02.575519", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.sql.xz", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/xz /tmp/dbdata.sql.xz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716242.95729-r76okk9f/pg_fifo", "executed_commands": ["/usr/bin/xz /tmp/dbdata.sql.xz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716242.95729-r76okk9f/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.sql.xz"], "delta": "0:00:00.002562", "end": "2022-11-29 10:04:03.272146", "msg": "", "rc": 0, "start": "2022-11-29 10:04:03.269584", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.sql.xz: XZ compressed data", "stdout_lines": ["/tmp/dbdata.sql.xz: XZ compressed data"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.037753", "end": "2022-11-29 10:04:05.055732", "msg": "", "rc": 0, "start": "2022-11-29 10:04:05.017979", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.sql.xz", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s CREATEDB LOGIN CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.tar"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.042002", "end": "2022-11-29 10:04:09.286111", "msg": "", "rc": 0, "start": "2022-11-29 10:04:09.244109", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.041259", "end": "2022-11-29 10:04:09.467774", "msg": "", "rc": 0, "start": "2022-11-29 10:04:09.426515", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.tar", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=t --exclude-table=fake -n public > /tmp/dbdata.tar", "executed_commands": ["/usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=t --exclude-table=fake -n public > /tmp/dbdata.tar"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.tar"], "delta": "0:00:00.002176", "end": "2022-11-29 10:04:10.116290", "msg": "", "rc": 0, "start": "2022-11-29 10:04:10.114114", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.tar: POSIX tar archive", "stdout_lines": ["/tmp/dbdata.tar: POSIX tar archive"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_restore --dbname=ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=Tar -n public < /tmp/dbdata.tar", "executed_commands": ["/usr/bin/pg_restore --dbname=ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=Tar -n public < /tmp/dbdata.tar"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.037811", "end": "2022-11-29 10:04:11.983419", "msg": "", "rc": 0, "start": "2022-11-29 10:04:11.945608", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_restore --dbname=db.name --host=localhost --port=5432 --username=ansible.db.user1 --format=Tar -n public < /tmp/dbdata.tar", "executed_commands": ["/usr/bin/pg_restore --dbname=db.name --host=localhost --port=5432 --username=ansible.db.user1 --format=Tar -n public < /tmp/dbdata.tar"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.tar", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s LOGIN CREATEDB CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.tar.gz"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.046081", "end": "2022-11-29 10:04:16.143975", "msg": "", "rc": 0, "start": "2022-11-29 10:04:16.097894", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.044546", "end": "2022-11-29 10:04:16.337717", "msg": "", "rc": 0, "start": "2022-11-29 10:04:16.293171", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.tar.gz", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/gzip /tmp/dbdata.tar.gz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716256.7109778-j8_enz4f/pg_fifo", "executed_commands": ["/usr/bin/gzip /tmp/dbdata.tar.gz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716256.7109778-j8_enz4f/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.tar.gz"], "delta": "0:00:00.002684", "end": "2022-11-29 10:04:17.009753", "msg": "", "rc": 0, "start": "2022-11-29 10:04:17.007069", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.tar.gz: gzip compressed data, from Unix, original size modulo 2^32 1250", "stdout_lines": ["/tmp/dbdata.tar.gz: gzip compressed data, from Unix, original size modulo 2^32 1250"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.037939", "end": "2022-11-29 10:04:18.815915", "msg": "", "rc": 0, "start": "2022-11-29 10:04:18.777976", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.tar.gz", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s LOGIN CREATEDB CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.tar.bz2"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.040931", "end": "2022-11-29 10:04:23.164153", "msg": "", "rc": 0, "start": "2022-11-29 10:04:23.123222", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.040351", "end": "2022-11-29 10:04:23.342498", "msg": "", "rc": 0, "start": "2022-11-29 10:04:23.302147", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.tar.bz2", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/bzip2 /tmp/dbdata.tar.bz2 & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716263.7073588-cv136x1n/pg_fifo", "executed_commands": ["/usr/bin/bzip2 /tmp/dbdata.tar.bz2 & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716263.7073588-cv136x1n/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.tar.bz2"], "delta": "0:00:00.002677", "end": "2022-11-29 10:04:23.987707", "msg": "", "rc": 0, "start": "2022-11-29 10:04:23.985030", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.tar.bz2: bzip2 compressed data, block size = 900k", "stdout_lines": ["/tmp/dbdata.tar.bz2: bzip2 compressed data, block size = 900k"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.044743", "end": "2022-11-29 10:04:25.898401", "msg": "", "rc": 0, "start": "2022-11-29 10:04:25.853658", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.tar.bz2", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s LOGIN CREATEROLE CREATEDB"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.tar.xz"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.040538", "end": "2022-11-29 10:04:30.186106", "msg": "", "rc": 0, "start": "2022-11-29 10:04:30.145568", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.039070", "end": "2022-11-29 10:04:30.365220", "msg": "", "rc": 0, "start": "2022-11-29 10:04:30.326150", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.tar.xz", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/xz /tmp/dbdata.tar.xz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716270.6997952-b5eml1fq/pg_fifo", "executed_commands": ["/usr/bin/xz /tmp/dbdata.tar.xz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716270.6997952-b5eml1fq/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.tar.xz"], "delta": "0:00:00.002234", "end": "2022-11-29 10:04:30.980871", "msg": "", "rc": 0, "start": "2022-11-29 10:04:30.978637", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.tar.xz: XZ compressed data", "stdout_lines": ["/tmp/dbdata.tar.xz: XZ compressed data"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.038001", "end": "2022-11-29 10:04:32.738143", "msg": "", "rc": 0, "start": "2022-11-29 10:04:32.700142", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.tar.xz", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s LOGIN CREATEDB CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.pgc"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.045574", "end": "2022-11-29 10:04:37.147014", "msg": "", "rc": 0, "start": "2022-11-29 10:04:37.101440", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.042273", "end": "2022-11-29 10:04:37.357602", "msg": "", "rc": 0, "start": "2022-11-29 10:04:37.315329", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.pgc", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=c --exclude-table=fake -n public > /tmp/dbdata.pgc", "executed_commands": ["/usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=c --exclude-table=fake -n public > /tmp/dbdata.pgc"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.pgc"], "delta": "0:00:00.002583", "end": "2022-11-29 10:04:38.024127", "msg": "", "rc": 0, "start": "2022-11-29 10:04:38.021544", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.pgc: PostgreSQL custom database dump - v1.14-0", "stdout_lines": ["/tmp/dbdata.pgc: PostgreSQL custom database dump - v1.14-0"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_restore --dbname=ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=Custom -n public < /tmp/dbdata.pgc", "executed_commands": ["/usr/bin/pg_restore --dbname=ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=Custom -n public < /tmp/dbdata.pgc"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.040104", "end": "2022-11-29 10:04:39.744358", "msg": "", "rc": 0, "start": "2022-11-29 10:04:39.704254", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_restore --dbname=db.name --host=localhost --port=5432 --username=ansible.db.user1 --format=Custom -n public < /tmp/dbdata.pgc", "executed_commands": ["/usr/bin/pg_restore --dbname=db.name --host=localhost --port=5432 --username=ansible.db.user1 --format=Custom -n public < /tmp/dbdata.pgc"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.pgc", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s LOGIN CREATEROLE CREATEDB"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.dir"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.043647", "end": "2022-11-29 10:04:43.694469", "msg": "", "rc": 0, "start": "2022-11-29 10:04:43.650822", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.043089", "end": "2022-11-29 10:04:43.898676", "msg": "", "rc": 0, "start": "2022-11-29 10:04:43.855587", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.dir", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=d --exclude-table=fake -n public -f /tmp/dbdata.dir", "executed_commands": ["/usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=d --exclude-table=fake -n public -f /tmp/dbdata.dir"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.dir"], "delta": "0:00:00.002232", "end": "2022-11-29 10:04:44.549299", "msg": "", "rc": 0, "start": "2022-11-29 10:04:44.547067", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.dir: directory", "stdout_lines": ["/tmp/dbdata.dir: directory"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_restore --dbname=ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=Directory -n public /tmp/dbdata.dir", "executed_commands": ["/usr/bin/pg_restore --dbname=ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --format=Directory -n public /tmp/dbdata.dir"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.040733", "end": "2022-11-29 10:04:46.240442", "msg": "", "rc": 0, "start": "2022-11-29 10:04:46.199709", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_restore --dbname=db.name --host=localhost --port=5432 --username=ansible.db.user1 --format=Directory -n public /tmp/dbdata.dir", "executed_commands": ["/usr/bin/pg_restore --dbname=db.name --host=localhost --port=5432 --username=ansible.db.user1 --format=Directory -n public /tmp/dbdata.dir"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.dir", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s CREATEDB LOGIN CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.dir.gz"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.043134", "end": "2022-11-29 10:04:50.190137", "msg": "", "rc": 0, "start": "2022-11-29 10:04:50.147003", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.042573", "end": "2022-11-29 10:04:50.380243", "msg": "", "rc": 0, "start": "2022-11-29 10:04:50.337670", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.dir.gz", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/gzip /tmp/dbdata.dir.gz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716290.7478862-ka9yadj7/pg_fifo", "executed_commands": ["/usr/bin/gzip /tmp/dbdata.dir.gz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716290.7478862-ka9yadj7/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.dir.gz"], "delta": "0:00:00.002960", "end": "2022-11-29 10:04:51.060996", "msg": "", "rc": 0, "start": "2022-11-29 10:04:51.058036", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.dir.gz: gzip compressed data, from Unix, original size modulo 2^32 1250", "stdout_lines": ["/tmp/dbdata.dir.gz: gzip compressed data, from Unix, original size modulo 2^32 1250"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.040157", "end": "2022-11-29 10:04:52.773674", "msg": "", "rc": 0, "start": "2022-11-29 10:04:52.733517", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.dir.gz", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s LOGIN CREATEDB CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.dir.bz2"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.042980", "end": "2022-11-29 10:04:56.836879", "msg": "", "rc": 0, "start": "2022-11-29 10:04:56.793899", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.041016", "end": "2022-11-29 10:04:57.028258", "msg": "", "rc": 0, "start": "2022-11-29 10:04:56.987242", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.dir.bz2", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/bzip2 /tmp/dbdata.dir.bz2 & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716297.3790593-l7w63xul/pg_fifo", "executed_commands": ["/usr/bin/bzip2 /tmp/dbdata.dir.bz2 & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716297.3790593-l7w63xul/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.dir.bz2"], "delta": "0:00:00.002793", "end": "2022-11-29 10:04:57.675539", "msg": "", "rc": 0, "start": "2022-11-29 10:04:57.672746", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.dir.bz2: bzip2 compressed data, block size = 900k", "stdout_lines": ["/tmp/dbdata.dir.bz2: bzip2 compressed data, block size = 900k"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.046120", "end": "2022-11-29 10:04:59.390642", "msg": "", "rc": 0, "start": "2022-11-29 10:04:59.344522", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.dir.bz2", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s CREATEDB LOGIN CREATEROLE"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.dir.xz"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "env PGPASSWORD=password psql -h localhost -U ansible.db.user1 ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.044064", "end": "2022-11-29 10:05:03.291943", "msg": "", "rc": 0, "start": "2022-11-29 10:05:03.247879", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.041532", "end": "2022-11-29 10:05:03.484090", "msg": "", "rc": 0, "start": "2022-11-29 10:05:03.442558", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.dir.xz", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/xz /tmp/dbdata.dir.xz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716303.8391662-jo54hgpb/pg_fifo", "executed_commands": ["/usr/bin/xz /tmp/dbdata.dir.xz & /usr/bin/pg_dump ansible_db --host=localhost --port=5432 --username=ansible.db.user1 --exclude-table=fake -n public >/tmp/ansible-moduletmp-1669716303.8391662-jo54hgpb/pg_fifo"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.dir.xz"], "delta": "0:00:00.002378", "end": "2022-11-29 10:05:04.149448", "msg": "", "rc": 0, "start": "2022-11-29 10:05:04.147070", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.dir.xz: XZ compressed data", "stdout_lines": ["/tmp/dbdata.dir.xz: XZ compressed data"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: schema \"public\" already exists\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: schema \"public\" already exists", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["env", "PGPASSWORD=password", "psql", "-h", "localhost", "-U", "ansible.db.user1", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.039323", "end": "2022-11-29 10:05:05.859508", "msg": "", "rc": 0, "start": "2022-11-29 10:05:05.820185", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "cmd: ****", "executed_commands": [], "msg": "", "rc": 0, "stderr": "psql: warning: extra command-line argument \"public\" ignored\nERROR: permission denied for database db.name\nERROR: must be owner of schema public\n", "stderr_lines": ["psql: warning: extra command-line argument \"public\" ignored", "ERROR: permission denied for database db.name", "ERROR: must be owner of schema public"]} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.dir.xz", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a test user] ************************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ansible.db.user1\" WITH ENCRYPTED PASSWORD %(********)s LOGIN CREATEROLE CREATEDB"], "user": "ansible.db.user1"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"db_file_name": "/tmp/dbdata.tar"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"admin_str": "psql -U postgres"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"user_str": "psql -U postgres ansible_db"}, "changed": false} + +TASK [postgresql_db : set_fact] ************************************************ +ok: [testhost] => {"ansible_facts": {"sql_create": "create table employee(id int, name varchar(100));", "sql_insert": "insert into employee values (47,'Joe Smith');", "sql_select": "select * from employee;"}, "changed": false} + +TASK [postgresql_db : state dump/restore - create database] ******************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : state dump/restore - create table employee] ************** +changed: [testhost] => {"changed": true, "cmd": ["psql", "-U", "postgres", "ansible_db", "-c", "create table employee(id int, name varchar(100));"], "delta": "0:00:00.039249", "end": "2022-11-29 10:05:09.861814", "msg": "", "rc": 0, "start": "2022-11-29 10:05:09.822565", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_db : state dump/restore - insert data into table employee] **** +changed: [testhost] => {"changed": true, "cmd": ["psql", "-U", "postgres", "ansible_db", "-c", "insert into employee values (47,'Joe Smith');"], "delta": "0:00:00.034612", "end": "2022-11-29 10:05:10.049309", "msg": "", "rc": 0, "start": "2022-11-29 10:05:10.014697", "stderr": "", "stderr_lines": [], "stdout": "INSERT 0 1", "stdout_lines": ["INSERT 0 1"]} + +TASK [postgresql_db : state dump/restore - file name should not exist] ********* +ok: [testhost] => {"changed": false, "path": "/tmp/dbdata.tar", "state": "absent"} + +TASK [postgresql_db : test state=dump to backup the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_dump ansible_db --port=5432 --username=postgres --format=t --exclude-table=fake > /tmp/dbdata.tar", "executed_commands": ["/usr/bin/pg_dump ansible_db --port=5432 --username=postgres --format=t --exclude-table=fake > /tmp/dbdata.tar"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message backup the database] *************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : assert database was backed up successfully] ************** +changed: [testhost] => {"changed": true, "cmd": ["file", "/tmp/dbdata.tar"], "delta": "0:00:00.002211", "end": "2022-11-29 10:05:10.695833", "msg": "", "rc": 0, "start": "2022-11-29 10:05:10.693622", "stderr": "", "stderr_lines": [], "stdout": "/tmp/dbdata.tar: POSIX tar archive", "stdout_lines": ["/tmp/dbdata.tar: POSIX tar archive"]} + +TASK [postgresql_db : state dump/restore - remove database for restore] ******** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : state dump/restore - re-create database] ***************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["CREATE DATABASE \"ansible_db\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_restore --dbname=ansible_db --port=5432 --username=postgres --format=Tar < /tmp/dbdata.tar", "executed_commands": ["/usr/bin/pg_restore --dbname=ansible_db --port=5432 --username=postgres --format=Tar < /tmp/dbdata.tar"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : select data from table employee] ************************* +changed: [testhost] => {"changed": true, "cmd": ["psql", "-U", "postgres", "ansible_db", "-c", "select * from employee;"], "delta": "0:00:00.037497", "end": "2022-11-29 10:05:12.406026", "msg": "", "rc": 0, "start": "2022-11-29 10:05:12.368529", "stderr": "", "stderr_lines": [], "stdout": " id | name \n----+-----------\n 47 | Joe Smith\n(1 row)", "stdout_lines": [" id | name ", "----+-----------", " 47 | Joe Smith", "(1 row)"]} + +TASK [postgresql_db : assert data in database is from the restore database] **** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input no] **** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'db.name\"; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - create database, trust_input true explicitly] *** +changed: [testhost] => {"changed": true, "db": "db.name\"; --", "executed_commands": ["CREATE DATABASE \"db.name\"; --\" OWNER \"ansible.db.user1\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : test state=restore to restore the database (expect changed=true)] *** +changed: [testhost] => {"changed": true, "cmd": "/usr/bin/pg_restore --dbname=db.name --port=5432 --username=postgres --format=Tar < /tmp/dbdata.tar", "executed_commands": ["/usr/bin/pg_restore --dbname=db.name --port=5432 --username=postgres --format=Tar < /tmp/dbdata.tar"], "msg": "", "rc": 0, "stderr": "", "stderr_lines": []} + +TASK [postgresql_db : assert output message restore the database] ************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove databases] ******************* +changed: [testhost] => {"changed": true, "db": "db.name", "executed_commands": ["DROP DATABASE \"db.name\""]} + +TASK [postgresql_db : assert] ************************************************** +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_db : state dump/restore - remove database name] *************** +changed: [testhost] => {"changed": true, "db": "ansible_db", "executed_commands": ["DROP DATABASE \"ansible_db\""]} + +TASK [postgresql_db : remove file name] **************************************** +changed: [testhost] => {"changed": true, "path": "/tmp/dbdata.tar", "state": "absent"} + +TASK [postgresql_db : Remove the test user] ************************************ +changed: [testhost] => {"changed": true, "queries": ["DROP USER \"ansible.db.user1\""], "user": "ansible.db.user1", "user_removed": true} + +TASK [postgresql_db : Create a simple database mydb] *************************** +changed: [testhost] => {"changed": true, "db": "mydb", "executed_commands": ["CREATE DATABASE \"mydb\""]} + +TASK [postgresql_db : Drop the database with force] **************************** +changed: [testhost] => {"changed": true, "db": "mydb", "executed_commands": ["DROP DATABASE \"mydb\" WITH (FORCE)"]} + +PLAY RECAP ********************************************************************* +testhost : ok=571 changed=284 unreachable=0 failed=0 skipped=30 rescued=0 ignored=25 + +Configuring target inventory. +Running postgresql_ext integration test role +Stream command: ansible-playbook postgresql_ext-o5rawxth.yml -i inventory -v +[WARNING]: running playbook inside collection community.postgresql +Using /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_ext-n109bal2-ÅÑŚÌβŁÈ/tests/integration/integration.cfg as config file + +PLAY [testhost] **************************************************************** + +TASK [Gathering Facts] ********************************************************* +ok: [testhost] + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_pkg_mgr : set_fact] ************************************************ +[WARNING]: Failure using method (v2_runner_on_skipped) in callback plugin +(): /ro +ot/ansible_collections/community/postgresql/tests/output/.tmp/integration/postg +resql_ext-n109bal2- +ÅÑŚÌβŁÈ/tests/integration/targets/setup_pkg_mgr/tasks/main.yml:7: testhost: +setup_pkg_mgr : set_fact pkg_mgr=community.general.pkgng, +ansible_pkg_mgr=community.general.pkgng, cacheable=True: duplicate host +callback: testhost +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_pkg_mgr : set_fact] ************************************************ +[WARNING]: Failure using method (v2_runner_on_skipped) in callback plugin +(): /ro +ot/ansible_collections/community/postgresql/tests/output/.tmp/integration/postg +resql_ext-n109bal2- +ÅÑŚÌβŁÈ/tests/integration/targets/setup_pkg_mgr/tasks/main.yml:13: testhost: +setup_pkg_mgr : set_fact pkg_mgr=community.general.zypper, +ansible_pkg_mgr=community.general.zypper, cacheable=True: duplicate host +callback: testhost +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 2] ****************************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 3] ****************************************** +ok: [testhost] => {"ansible_facts": {"python_suffix": "-py3"}, "changed": false} + +TASK [setup_postgresql_db : Include distribution and Python version specific variables] *** +ok: [testhost] => {"ansible_facts": {"pg_auto_conf": "{{ pg_dir }}/postgresql.auto.conf", "pg_dir": "/var/lib/postgresql/14/main", "pg_hba_location": "/etc/postgresql/14/main/pg_hba.conf", "pg_ver": 14, "postgis": "postgresql-14-postgis-3", "postgresql_packages": ["apt-utils", "postgresql-14", "postgresql-common", "python3-psycopg2"]}, "ansible_included_var_files": ["/root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_ext-n109bal2-ÅÑŚÌβŁÈ/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-20-py3.yml"], "changed": false} + +TASK [setup_postgresql_db : Make sure the dbus service is enabled under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Make sure the dbus service is started under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : stop postgresql service] *************************** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "stopped", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ActiveEnterTimestampMonotonic": "3484287029", "ActiveExitTimestamp": "Tue 2022-11-29 10:02:45 UTC", "ActiveExitTimestampMonotonic": "3469252910", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target basic.target postgresql@14-main.service system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:03:00 UTC", "AssertTimestampMonotonic": "3484279051", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ConditionTimestampMonotonic": "3484279050", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ExecMainExitTimestampMonotonic": "3484285853", "ExecMainPID": "5032", "ExecMainStartTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ExecMainStartTimestampMonotonic": "3484281937", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:03:16 UTC] ; stop_time=[Tue 2022-11-29 10:03:16 UTC] ; pid=5229 ; code=exited ; status=0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:03:16 UTC] ; stop_time=[Tue 2022-11-29 10:03:16 UTC] ; pid=5229 ; code=exited ; status=0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:03:00 UTC] ; stop_time=[Tue 2022-11-29 10:03:00 UTC] ; pid=5032 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:03:00 UTC] ; stop_time=[Tue 2022-11-29 10:03:00 UTC] ; pid=5032 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:02:45 UTC", "InactiveEnterTimestampMonotonic": "3469252910", "InactiveExitTimestamp": "Tue 2022-11-29 10:03:00 UTC", "InactiveExitTimestampMonotonic": "3484282585", "InvocationID": "07f86601b5dd4eb5a2245ae7a78eb465", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:03:16 UTC", "StateChangeTimestampMonotonic": "3500998750", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : remove old db (RedHat)] **************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : remove old db config and files (debian)] *********** +changed: [testhost] => (item=/etc/postgresql) => {"ansible_loop_var": "loop_item", "changed": true, "loop_item": "/etc/postgresql", "path": "/etc/postgresql", "state": "absent"} +changed: [testhost] => (item=/var/lib/postgresql) => {"ansible_loop_var": "loop_item", "changed": true, "loop_item": "/var/lib/postgresql", "path": "/var/lib/postgresql", "state": "absent"} + +TASK [setup_postgresql_db : Install wget] ************************************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "echo \"deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" > /etc/apt/sources.list.d/pgdg.list", "delta": "0:00:00.031272", "end": "2022-11-29 10:05:20.362977", "msg": "", "rc": 0, "start": "2022-11-29 10:05:20.331705", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -", "delta": "0:00:00.377392", "end": "2022-11-29 10:05:20.900206", "msg": "", "rc": 0, "start": "2022-11-29 10:05:20.522814", "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)"], "stdout": "OK", "stdout_lines": ["OK"]} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "apt -y update", "delta": "0:00:01.642226", "end": "2022-11-29 10:05:22.703980", "msg": "", "rc": 0, "start": "2022-11-29 10:05:21.061754", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Hit:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease\nHit:2 http://archive.ubuntu.com/ubuntu focal InRelease\nHit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease\nHit:5 http://security.ubuntu.com/ubuntu focal-security InRelease\nReading package lists...\nBuilding dependency tree...\nReading state information...\n36 packages can be upgraded. Run 'apt list --upgradable' to see them.", "stdout_lines": ["Hit:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease", "Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease", "Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease", "Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease", "Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease", "Reading package lists...", "Building dependency tree...", "Reading state information...", "36 packages can be upgraded. Run 'apt list --upgradable' to see them."]} + +TASK [setup_postgresql_db : Install locale needed] ***************************** +changed: [testhost] => (item=es_ES) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen es_ES", "delta": "0:00:00.423562", "end": "2022-11-29 10:05:23.301022", "item": "es_ES", "msg": "", "rc": 0, "start": "2022-11-29 10:05:22.877460", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n es_ES.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " es_ES.ISO-8859-1... done", "Generation complete."]} +changed: [testhost] => (item=pt_BR) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen pt_BR", "delta": "0:00:00.423845", "end": "2022-11-29 10:05:23.868840", "item": "pt_BR", "msg": "", "rc": 0, "start": "2022-11-29 10:05:23.444995", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n pt_BR.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " pt_BR.ISO-8859-1... done", "Generation complete."]} + +TASK [setup_postgresql_db : Update locale] ************************************* +changed: [testhost] => {"changed": true, "cmd": "update-locale", "delta": "0:00:00.016439", "end": "2022-11-29 10:05:24.048037", "msg": "", "rc": 0, "start": "2022-11-29 10:05:24.031598", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : install dependencies for postgresql test] ********** +ok: [testhost] => (item=apt-utils) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "apt-utils"} +ok: [testhost] => (item=postgresql-14) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "postgresql-14"} +ok: [testhost] => (item=postgresql-common) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "postgresql-common"} +ok: [testhost] => (item=python3-psycopg2) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "python3-psycopg2"} + +TASK [setup_postgresql_db : Initialize postgres (RedHat systemd)] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (RedHat sysv)] ***************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (Debian)] ********************** +changed: [testhost] => {"changed": true, "cmd": ". /usr/share/postgresql-common/maintscripts-functions && set_system_locale && /usr/bin/pg_createcluster -u postgres 14 main", "delta": "0:00:03.261211", "end": "2022-11-29 10:05:30.668079", "msg": "", "rc": 0, "start": "2022-11-29 10:05:27.406868", "stderr": "", "stderr_lines": [], "stdout": "Creating new PostgreSQL cluster 14/main ...\n/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions\nThe files belonging to this database system will be owned by user \"postgres\".\nThis user must also own the server process.\n\nThe database cluster will be initialized with locale \"C.UTF-8\".\nThe default database encoding has accordingly been set to \"UTF8\".\nThe default text search configuration will be set to \"english\".\n\nData page checksums are disabled.\n\nfixing permissions on existing directory /var/lib/postgresql/14/main ... ok\ncreating subdirectories ... ok\nselecting dynamic shared memory implementation ... posix\nselecting default max_connections ... 100\nselecting default shared_buffers ... 128MB\nselecting default time zone ... Etc/UTC\ncreating configuration files ... ok\nrunning bootstrap script ... ok\nperforming post-bootstrap initialization ... ok\nsyncing data to disk ... ok\nVer Cluster Port Status Owner Data directory Log file\n14 main 5432 down postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log", "stdout_lines": ["Creating new PostgreSQL cluster 14/main ...", "/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions", "The files belonging to this database system will be owned by user \"postgres\".", "This user must also own the server process.", "", "The database cluster will be initialized with locale \"C.UTF-8\".", "The default database encoding has accordingly been set to \"UTF8\".", "The default text search configuration will be set to \"english\".", "", "Data page checksums are disabled.", "", "fixing permissions on existing directory /var/lib/postgresql/14/main ... ok", "creating subdirectories ... ok", "selecting dynamic shared memory implementation ... posix", "selecting default max_connections ... 100", "selecting default shared_buffers ... 128MB", "selecting default time zone ... Etc/UTC", "creating configuration files ... ok", "running bootstrap script ... ok", "performing post-bootstrap initialization ... ok", "syncing data to disk ... ok", "Ver Cluster Port Status Owner Data directory Log file", "14 main 5432 down postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log"]} + +TASK [setup_postgresql_db : Copy pg_hba into place] **************************** +changed: [testhost] => {"changed": true, "checksum": "ee5e714afec7113d11e2aca167bd08ba0eb2bd32", "dest": "/etc/postgresql/14/main/pg_hba.conf", "gid": 0, "group": "root", "md5sum": "ac04fb305309e15b41c01dd5d3d6ca6d", "mode": "0644", "owner": "postgres", "size": 470, "src": "/root/.ansible/tmp/ansible-tmp-1669716330.7082422-2005-24076209685952/source", "state": "file", "uid": 105} + +TASK [setup_postgresql_db : Install langpacks (RHEL8)] ************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Check if locales need to be generated (RedHat)] **** +skipping: [testhost] => (item=es_ES) => {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=pt_BR) => {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Reinstall internationalization files] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Generate locale (RedHat)] ************************** +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'es_ES', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'pt_BR', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Install glibc langpacks (Fedora >= 24)] ************ +skipping: [testhost] => (item=glibc-langpack-es) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-es", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=glibc-langpack-pt) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-pt", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : start postgresql service] ************************** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ActiveEnterTimestampMonotonic": "3484287029", "ActiveExitTimestamp": "Tue 2022-11-29 10:05:18 UTC", "ActiveExitTimestampMonotonic": "3622757158", "ActiveState": "inactive", "After": "systemd-journald.socket basic.target sysinit.target postgresql@14-main.service system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:03:00 UTC", "AssertTimestampMonotonic": "3484279051", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ConditionTimestampMonotonic": "3484279050", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ExecMainExitTimestampMonotonic": "3484285853", "ExecMainPID": "5032", "ExecMainStartTimestamp": "Tue 2022-11-29 10:03:00 UTC", "ExecMainStartTimestampMonotonic": "3484281937", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:05:18 UTC", "InactiveEnterTimestampMonotonic": "3622757158", "InactiveExitTimestamp": "Tue 2022-11-29 10:03:00 UTC", "InactiveExitTimestampMonotonic": "3484282585", "InvocationID": "07f86601b5dd4eb5a2245ae7a78eb465", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:05:18 UTC", "StateChangeTimestampMonotonic": "3622757158", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : Pause between start and stop] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:05:33.930631", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:05:38.930919", "user_input": ""} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Stop postgresql service] *************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Pause between stop and start] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:05:39.024661", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:05:44.024875", "user_input": ""} + +TASK [setup_postgresql_db : Start postgresql service] ************************** +ok: [testhost] => {"changed": false, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ActiveEnterTimestampMonotonic": "3637985233", "ActiveExitTimestamp": "Tue 2022-11-29 10:05:18 UTC", "ActiveExitTimestampMonotonic": "3622757158", "ActiveState": "active", "After": "systemd-journald.socket basic.target sysinit.target postgresql@14-main.service system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:05:33 UTC", "AssertTimestampMonotonic": "3637978032", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ConditionTimestampMonotonic": "3637978031", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ExecMainExitTimestampMonotonic": "3637984061", "ExecMainPID": "7769", "ExecMainStartTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ExecMainStartTimestampMonotonic": "3637980528", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:05:33 UTC] ; stop_time=[Tue 2022-11-29 10:05:33 UTC] ; pid=7769 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:05:33 UTC] ; stop_time=[Tue 2022-11-29 10:05:33 UTC] ; pid=7769 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:05:18 UTC", "InactiveEnterTimestampMonotonic": "3622757158", "InactiveExitTimestamp": "Tue 2022-11-29 10:05:33 UTC", "InactiveExitTimestampMonotonic": "3637981027", "InvocationID": "69c9ad086fc448dab4d37ffb568b97ce", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:05:33 UTC", "StateChangeTimestampMonotonic": "3637985233", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : copy control file for dummy ext] ******************* +ok: [testhost] => {"changed": false, "checksum": "de37beb34a4765b0b07dc249c7866f1e0e7351fa", "dest": "/usr/share/postgresql/14/extension/dummy.control", "gid": 0, "group": "root", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy.control", "size": 114, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : copy version files for dummy ext] ****************** +ok: [testhost] => (item=dummy--0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "8f073962a56e90e49c0d8f7985497cd1b51506e2", "dest": "/usr/share/postgresql/14/extension/dummy--0.sql", "gid": 0, "group": "root", "item": "dummy--0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--0.sql", "size": 108, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--1.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "a2b62264e8d532f9217b439b11c8c366dea14dc6", "dest": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "size": 110, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--2.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "f6839f9b1988bb8b594b50b4f85c7a52fc770d9d", "dest": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "size": 110, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--3.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "a5875ba65c676f96c2f3527a2ef0c495e77a9a72", "dest": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "gid": 0, "group": "root", "item": "dummy--3.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "size": 110, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : add update paths] ********************************** +changed: [testhost] => (item=dummy--0--1.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--0--1.0.sql", "gid": 0, "group": "root", "item": "dummy--0--1.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--1.0--2.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--1.0--2.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0--2.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--2.0--3.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--2.0--3.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0--3.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : Get PostgreSQL version] **************************** +[WARNING]: Unable to use /var/lib/postgresql/.ansible/tmp as temporary +directory, failing back to system: [Errno 13] Permission denied: +'/var/lib/postgresql/.ansible' +changed: [testhost] => {"changed": true, "cmd": "echo 'SHOW SERVER_VERSION' | psql --tuples-only --no-align --dbname postgres", "delta": "0:00:00.036799", "end": "2022-11-29 10:05:46.537673", "msg": "", "rc": 0, "start": "2022-11-29 10:05:46.500874", "stderr": "", "stderr_lines": [], "stdout": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "stdout_lines": ["14.6 (Ubuntu 14.6-1.pgdg20.04+1)"]} + +TASK [setup_postgresql_db : Print PostgreSQL server version] ******************* +ok: [testhost] => { + "msg": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)" +} + +TASK [setup_postgresql_db : postgresql SSL - create database] ****************** +changed: [testhost] => {"changed": true, "db": "ssl_db", "executed_commands": ["CREATE DATABASE \"ssl_db\""]} + +TASK [setup_postgresql_db : postgresql SSL - create role] ********************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ssl_user\" WITH ENCRYPTED PASSWORD %(password)s SUPERUSER"], "user": "ssl_user"} + +TASK [setup_postgresql_db : postgresql SSL - install openssl] ****************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_db : postgresql SSL - create certs 1] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl req -new -nodes -text -out ~postgres/root.csr -keyout ~postgres/root.key -subj \"/CN=localhost.local\"", "delta": "0:00:00.068185", "end": "2022-11-29 10:05:49.054604", "msg": "", "rc": 0, "start": "2022-11-29 10:05:48.986419", "stderr": "Generating a RSA private key\n..................+++++\n............................................+++++\nwriting new private key to '/var/lib/postgresql/root.key'\n-----", "stderr_lines": ["Generating a RSA private key", "..................+++++", "............................................+++++", "writing new private key to '/var/lib/postgresql/root.key'", "-----"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 2] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl x509 -req -in ~postgres/root.csr -text -days 3650 -extensions v3_ca -signkey ~postgres/root.key -out ~postgres/root.crt", "delta": "0:00:00.005728", "end": "2022-11-29 10:05:49.213373", "msg": "", "rc": 0, "start": "2022-11-29 10:05:49.207645", "stderr": "Signature ok\nsubject=CN = localhost.local\nGetting Private key", "stderr_lines": ["Signature ok", "subject=CN = localhost.local", "Getting Private key"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 3] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl req -new -nodes -text -out ~postgres/server.csr -keyout ~postgres/server.key -subj \"/CN=localhost.local\"", "delta": "0:00:00.038131", "end": "2022-11-29 10:05:49.404433", "msg": "", "rc": 0, "start": "2022-11-29 10:05:49.366302", "stderr": "Generating a RSA private key\n............................+++++\n.+++++\nwriting new private key to '/var/lib/postgresql/server.key'\n-----", "stderr_lines": ["Generating a RSA private key", "............................+++++", ".+++++", "writing new private key to '/var/lib/postgresql/server.key'", "-----"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 4] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl x509 -req -in ~postgres/server.csr -text -days 365 -CA ~postgres/root.crt -CAkey ~postgres/root.key -CAcreateserial -out server.crt", "delta": "0:00:00.006070", "end": "2022-11-29 10:05:49.564925", "msg": "", "rc": 0, "start": "2022-11-29 10:05:49.558855", "stderr": "Signature ok\nsubject=CN = localhost.local\nGetting CA Private Key", "stderr_lines": ["Signature ok", "subject=CN = localhost.local", "Getting CA Private Key"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - set right permissions to files] *** +changed: [testhost] => (item=~postgres/root.key) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/root.key", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/root.key", "size": 1704, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/server.key) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/server.key", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/server.key", "size": 1704, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/root.crt) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/root.crt", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/root.crt", "size": 2745, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/server.csr) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/server.csr", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/server.csr", "size": 3336, "state": "file", "uid": 105} + +TASK [setup_postgresql_db : postgresql SSL - enable SSL] *********************** +ok: [testhost] => {"changed": false, "context": "sighup", "name": "ssl", "prev_val_pretty": "on", "restart_required": false, "value": {"unit": null, "value": "on"}, "value_pretty": "on"} + +TASK [setup_postgresql_db : postgresql SSL - reload PostgreSQL to enable ssl on] *** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ActiveEnterTimestampMonotonic": "3637985233", "ActiveExitTimestamp": "Tue 2022-11-29 10:05:18 UTC", "ActiveExitTimestampMonotonic": "3622757158", "ActiveState": "active", "After": "systemd-journald.socket basic.target sysinit.target postgresql@14-main.service system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:05:33 UTC", "AssertTimestampMonotonic": "3637978032", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ConditionTimestampMonotonic": "3637978031", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ExecMainExitTimestampMonotonic": "3637984061", "ExecMainPID": "7769", "ExecMainStartTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ExecMainStartTimestampMonotonic": "3637980528", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:05:33 UTC] ; stop_time=[Tue 2022-11-29 10:05:33 UTC] ; pid=7769 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:05:33 UTC] ; stop_time=[Tue 2022-11-29 10:05:33 UTC] ; pid=7769 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:05:18 UTC", "InactiveEnterTimestampMonotonic": "3622757158", "InactiveExitTimestamp": "Tue 2022-11-29 10:05:33 UTC", "InactiveExitTimestampMonotonic": "3637981027", "InvocationID": "69c9ad086fc448dab4d37ffb568b97ce", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:05:33 UTC", "StateChangeTimestampMonotonic": "3637985233", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [postgresql_ext : Create a high privileged user] ************************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"session_role1\" WITH ENCRYPTED PASSWORD %(********)s CREATEDB LOGIN CREATEROLE"], "user": "session_role1"} + +TASK [postgresql_ext : Create DB as session_role] ****************************** +changed: [testhost] => {"changed": true, "db": "session_role1", "executed_commands": ["CREATE DATABASE \"session_role1\""]} + +TASK [postgresql_ext : Check that pg_extension exists (PostgreSQL >= 9.1)] ***** +changed: [testhost] => {"changed": true, "cmd": "echo \"select count(*) from pg_class where relname='pg_extension' and relkind='r'\" | psql -AtXq postgres", "delta": "0:00:00.034436", "end": "2022-11-29 10:05:52.194179", "msg": "", "rc": 0, "start": "2022-11-29 10:05:52.159743", "stderr": "", "stderr_lines": [], "stdout": "1", "stdout_lines": ["1"]} + +TASK [postgresql_ext : Remove plpgsql from testdb using postgresql_ext] ******** +changed: [testhost] => {"changed": true, "db": "session_role1", "ext": "plpgsql", "queries": ["DROP EXTENSION \"plpgsql\""]} + +TASK [postgresql_ext : Fail when trying to create an extension as a mere mortal user] *** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Could not switch role: role \"session_role2\" does not exist\n"} +...ignoring + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : Install extension as session_role] ********************** +changed: [testhost] => {"changed": true, "db": "session_role1", "ext": "plpgsql", "queries": ["CREATE EXTENSION \"plpgsql\""]} + +TASK [postgresql_ext : Check that extension is created and is owned by session_role] *** +changed: [testhost] => {"changed": true, "cmd": "echo \"select rolname from pg_extension join pg_roles on extowner=pg_roles.oid where extname='plpgsql';\" | psql -AtXq \"session_role1\"", "delta": "0:00:00.034360", "end": "2022-11-29 10:05:53.124089", "msg": "", "rc": 0, "start": "2022-11-29 10:05:53.089729", "stderr": "", "stderr_lines": [], "stdout": "session_role1", "stdout_lines": ["session_role1"]} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : Remove plpgsql from testdb using postgresql_ext] ******** +changed: [testhost] => {"changed": true, "db": "session_role1", "ext": "plpgsql", "queries": ["DROP EXTENSION \"plpgsql\""]} + +TASK [postgresql_ext : Drop test db] ******************************************* +changed: [testhost] => {"changed": true, "db": "session_role1", "executed_commands": ["DROP DATABASE \"session_role1\""]} + +TASK [postgresql_ext : Drop test users] **************************************** +changed: [testhost] => (item=session_role1) => {"ansible_loop_var": "item", "changed": true, "item": "session_role1", "queries": ["DROP USER \"session_role1\""], "user": "session_role1", "user_removed": true, "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +ok: [testhost] => (item=session_role2) => {"ansible_loop_var": "item", "changed": false, "item": "session_role2", "queries": [], "user": "session_role2", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_ext : postgresql_ext - install postgis on Linux] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - create schema schema1] ***************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - drop extension if exists] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - create extension postgis in check_mode] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - check that extension doesn't exist after the previous step] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - create extension postgis] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - check that extension exists after the previous step] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - drop extension postgis] **************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - check that extension doesn't exist after the previous step] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - create extension postgis] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - check that extension exists after the previous step] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - drop extension postgis cascade] ******** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - check that extension doesn't exist after the previous step] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - create extension postgis cascade] ****** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - check that extension exists after the previous step] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext - check that using a dangerous name fails] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : assert] ************************************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_ext : postgresql_ext_version - create schema schema1] ********* +changed: [testhost] => {"changed": true, "queries": ["CREATE SCHEMA \"schema1\""], "schema": "schema1"} + +TASK [postgresql_ext : postgresql_ext_version - create extension of specific version, check mode] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": []} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check that nothing was actually changed] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy'", "query_all_results": [[]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy'"], "query_result": [], "rowcount": 0, "statusmessage": "SELECT 0"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - create extension of specific version] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["CREATE EXTENSION \"dummy\" WITH SCHEMA \"schema1\" VERSION '1.0'"]} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check] ************************* +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '1.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '1.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - try to create extension of the same version again in check_mode] *** +ok: [testhost] => {"changed": false, "db": "postgres", "ext": "dummy", "queries": []} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check] ************************* +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '1.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '1.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - try to create extension of the same version again in actual mode] *** +ok: [testhost] => {"changed": false, "db": "postgres", "ext": "dummy", "queries": []} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check] ************************* +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '1.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '1.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - update the extension to the next version in check_mode] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": []} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check, the version must be 1.0] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '1.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '1.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - update the extension to the next version] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["ALTER EXTENSION \"dummy\" UPDATE TO '2.0'"]} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check, the version must be 2.0] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '2.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '2.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check that version won't be changed if version won't be passed] *** +ok: [testhost] => {"changed": false, "db": "postgres", "ext": "dummy", "queries": []} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check, the version must be 2.0] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '2.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '2.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - update the extension to the latest version] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["ALTER EXTENSION \"dummy\" UPDATE"]} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check] ************************* +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '3.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '3.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - try to update the extension to the latest version again which always runs an update.] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["ALTER EXTENSION \"dummy\" UPDATE"]} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check that version number did not change even though update ran] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '3.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '3.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - try to downgrade the extension version, must fail] *** +An exception occurred during task execution. To see the full traceback, use -vvv. The error was: psycopg2.errors.InvalidParameterValue: extension "dummy" has no update path from version "3.0" to version "1.0" +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Management of PostgreSQL extension failed: extension \"dummy\" has no update path from version \"3.0\" to version \"1.0\"\n"} +...ignoring + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - drop the extension in check_mode] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": []} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check that extension exists] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '3.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '3.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - drop the extension in actual mode] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["DROP EXTENSION \"dummy\""]} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check that extension doesn't exist after the prev step] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy'", "query_all_results": [[]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy'"], "query_result": [], "rowcount": 0, "statusmessage": "SELECT 0"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - try to drop the non-existent extension again] *** +ok: [testhost] => {"changed": false, "db": "postgres", "ext": "dummy", "queries": []} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - create the extension without passing version] *** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["CREATE EXTENSION \"dummy\""]} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - check] ************************* +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '3.0'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_extension WHERE extname = 'dummy' AND extversion = '3.0'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - try to install non-existent extension] *** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Extension non_existent is not available"} +...ignoring + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : Install postgis] **************************************** +changed: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": true, "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9\n libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2\n libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1\n libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5\n libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8\n libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7\n libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1\n libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1\n libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5\n liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2\n poppler-data postgresql-14-postgis-3-scripts proj-bin proj-data\nSuggested packages:\n geotiff-bin gdal-bin libgeotiff-epsg libhdf4-doc libhdf4-alt-dev hdf4-tools\n liblcms2-utils libmyodbc odbc-postgresql tdsodbc unixodbc-bin ogdi-bin\n poppler-utils ghostscript fonts-japanese-mincho | fonts-ipafont-mincho\n fonts-japanese-gothic | fonts-ipafont-gothic fonts-arphic-ukai\n fonts-arphic-uming fonts-nanum postgis\nThe following NEW packages will be installed:\n fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9\n libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2\n libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1\n libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5\n libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8\n libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7\n libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1\n libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1\n libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5\n liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2\n poppler-data postgresql-14-postgis-3 postgresql-14-postgis-3-scripts\n proj-bin proj-data\n0 upgraded, 64 newly installed, 0 to remove and 36 not upgraded.\nNeed to get 40.2 MB of archives.\nAfter this operation, 194 MB of additional disk space will be used.\nGet:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-14-postgis-3-scripts all 3.3.2+dfsg-1.pgdg20.04+1 [1334 kB]\nGet:2 http://archive.ubuntu.com/ubuntu focal/main amd64 poppler-data all 0.4.9-2 [1475 kB]\nGet:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-14-postgis-3 amd64 3.3.2+dfsg-1.pgdg20.04+1 [3692 kB]\nGet:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libpng16-16 amd64 1.6.37-2 [179 kB]\nGet:5 http://archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]\nGet:6 http://archive.ubuntu.com/ubuntu focal/main amd64 fontconfig-config all 2.13.1-2ubuntu3 [28.8 kB]\nGet:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 gdal-data all 3.0.4+dfsg-1build3 [186 kB]\nGet:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 libaec0 amd64 1.0.4-1 [19.1 kB]\nGet:9 http://archive.ubuntu.com/ubuntu focal/main amd64 libblas3 amd64 3.9.0-1build1 [142 kB]\nGet:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgfortran5 amd64 10.3.0-1ubuntu1~20.04 [736 kB]\nGet:11 http://archive.ubuntu.com/ubuntu focal/main amd64 liblapack3 amd64 3.9.0-1build1 [2154 kB]\nGet:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 libarpack2 amd64 3.7.0-3 [92.8 kB]\nGet:13 http://archive.ubuntu.com/ubuntu focal/universe amd64 libsuperlu5 amd64 5.2.1+dfsg1-4 [159 kB]\nGet:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 libarmadillo9 amd64 1:9.800.4+dfsg-1build1 [93.2 kB]\nGet:15 http://archive.ubuntu.com/ubuntu focal/main amd64 libboost-serialization1.71.0 amd64 1.71.0-6ubuntu6 [302 kB]\nGet:16 http://archive.ubuntu.com/ubuntu focal/universe amd64 libcfitsio8 amd64 3.470-3 [466 kB]\nGet:17 http://archive.ubuntu.com/ubuntu focal/universe amd64 libcharls2 amd64 2.0.0+dfsg-1build1 [74.1 kB]\nGet:18 http://archive.ubuntu.com/ubuntu focal/universe amd64 libdap25 amd64 3.20.5-1 [435 kB]\nGet:19 http://archive.ubuntu.com/ubuntu focal/universe amd64 libdapclient6v5 amd64 3.20.5-1 [92.2 kB]\nGet:20 http://archive.ubuntu.com/ubuntu focal/universe amd64 libepsilon1 amd64 0.9.2+dfsg-4 [41.0 kB]\nGet:21 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libfreetype6 amd64 2.10.1-2ubuntu0.2 [341 kB]\nGet:22 http://archive.ubuntu.com/ubuntu focal/main amd64 libfontconfig1 amd64 2.13.1-2ubuntu3 [114 kB]\nGet:23 http://archive.ubuntu.com/ubuntu focal/universe amd64 libfyba0 amd64 4.1.1-6build1 [113 kB]\nGet:24 http://archive.ubuntu.com/ubuntu focal/universe amd64 libfreexl1 amd64 1.0.5-3 [33.4 kB]\nGet:25 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgeos-3.8.0 amd64 3.8.0-1build1 [535 kB]\nGet:26 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgeos-c1v5 amd64 3.8.0-1build1 [69.9 kB]\nGet:27 http://archive.ubuntu.com/ubuntu focal/universe amd64 proj-data all 6.3.1-1 [7647 kB]\nGet:28 http://archive.ubuntu.com/ubuntu focal/universe amd64 libproj15 amd64 6.3.1-1 [925 kB]\nGet:29 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libjbig0 amd64 2.1-3.1ubuntu0.20.04.1 [27.3 kB]\nGet:30 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libjpeg-turbo8 amd64 2.0.3-0ubuntu1.20.04.3 [118 kB]\nGet:31 http://archive.ubuntu.com/ubuntu focal/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2194 B]\nGet:32 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libwebp6 amd64 0.6.1-2ubuntu0.20.04.1 [185 kB]\nGet:33 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libtiff5 amd64 4.1.0+git191117-2ubuntu0.20.04.6 [163 kB]\nGet:34 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgeotiff5 amd64 1.5.1-2 [53.1 kB]\nGet:35 http://archive.ubuntu.com/ubuntu focal/main amd64 libgif7 amd64 5.1.9-1 [32.2 kB]\nGet:36 http://archive.ubuntu.com/ubuntu focal/universe amd64 libhdf4-0-alt amd64 4.2.14-1ubuntu1 [268 kB]\nGet:37 http://archive.ubuntu.com/ubuntu focal/universe amd64 libsz2 amd64 1.0.4-1 [5188 B]\nGet:38 http://archive.ubuntu.com/ubuntu focal/universe amd64 libhdf5-103 amd64 1.10.4+repack-11ubuntu1 [1311 kB]\nGet:39 http://archive.ubuntu.com/ubuntu focal/universe amd64 libminizip1 amd64 1.1-8build1 [20.2 kB]\nGet:40 http://archive.ubuntu.com/ubuntu focal/universe amd64 liburiparser1 amd64 0.9.3-2 [39.3 kB]\nGet:41 http://archive.ubuntu.com/ubuntu focal/universe amd64 libkmlbase1 amd64 1.3.0-8build1 [45.4 kB]\nGet:42 http://archive.ubuntu.com/ubuntu focal/universe amd64 libkmldom1 amd64 1.3.0-8build1 [152 kB]\nGet:43 http://archive.ubuntu.com/ubuntu focal/universe amd64 libkmlengine1 amd64 1.3.0-8build1 [72.5 kB]\nGet:44 http://archive.ubuntu.com/ubuntu focal/main amd64 mysql-common all 5.8+1.0.5ubuntu2 [7496 B]\nGet:45 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libmysqlclient21 amd64 8.0.31-0ubuntu0.20.04.1 [1327 kB]\nGet:46 http://archive.ubuntu.com/ubuntu focal/universe amd64 libnetcdf15 amd64 1:4.7.3-1 [341 kB]\nGet:47 http://archive.ubuntu.com/ubuntu focal/main amd64 libltdl7 amd64 2.4.6-14 [38.5 kB]\nGet:48 http://archive.ubuntu.com/ubuntu focal/main amd64 libodbc1 amd64 2.3.6-0.1build1 [189 kB]\nGet:49 http://archive.ubuntu.com/ubuntu focal/universe amd64 libogdi4.1 amd64 4.1.0+ds-1build1 [198 kB]\nGet:50 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libopenjp2-7 amd64 2.3.1-1ubuntu4.20.04.1 [141 kB]\nGet:51 http://archive.ubuntu.com/ubuntu focal/main amd64 liblcms2-2 amd64 2.9-4 [140 kB]\nGet:52 http://archive.ubuntu.com/ubuntu focal/main amd64 libnspr4 amd64 2:4.25-1 [107 kB]\nGet:53 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss3 amd64 2:3.49.1-1ubuntu1.8 [1256 kB]\nGet:54 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpoppler97 amd64 0.86.1-0ubuntu1.1 [916 kB]\nGet:55 http://archive.ubuntu.com/ubuntu focal/universe amd64 libqhull7 amd64 2015.2-4 [152 kB]\nGet:56 http://archive.ubuntu.com/ubuntu focal/universe amd64 libspatialite7 amd64 4.3.0a-6build1 [1286 kB]\nGet:57 http://archive.ubuntu.com/ubuntu focal/universe amd64 libxerces-c3.2 amd64 3.2.2+debian-1build3 [878 kB]\nGet:58 http://archive.ubuntu.com/ubuntu focal/main amd64 odbcinst amd64 2.3.6-0.1build1 [14.8 kB]\nGet:59 http://archive.ubuntu.com/ubuntu focal/main amd64 odbcinst1debian2 amd64 2.3.6-0.1build1 [41.1 kB]\nGet:60 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgdal26 amd64 3.0.4+dfsg-1build3 [6156 kB]\nGet:61 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgmpxx4ldbl amd64 2:6.2.0+dfsg-4ubuntu0.1 [9144 B]\nGet:62 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libprotobuf-c1 amd64 1.3.3-1ubuntu0.1 [19.3 kB]\nGet:63 http://archive.ubuntu.com/ubuntu focal/universe amd64 libsfcgal1 amd64 1.3.7-4ubuntu3 [1926 kB]\nGet:64 http://archive.ubuntu.com/ubuntu focal/universe amd64 proj-bin amd64 6.3.1-1 [88.8 kB]\nFetched 40.2 MB in 6s (7280 kB/s)\nSelecting previously unselected package poppler-data.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 25526 files and directories currently installed.)\r\nPreparing to unpack .../00-poppler-data_0.4.9-2_all.deb ...\r\nUnpacking poppler-data (0.4.9-2) ...\r\nSelecting previously unselected package libpng16-16:amd64.\r\nPreparing to unpack .../01-libpng16-16_1.6.37-2_amd64.deb ...\r\nUnpacking libpng16-16:amd64 (1.6.37-2) ...\r\nSelecting previously unselected package fonts-dejavu-core.\r\nPreparing to unpack .../02-fonts-dejavu-core_2.37-1_all.deb ...\r\nUnpacking fonts-dejavu-core (2.37-1) ...\r\nSelecting previously unselected package fontconfig-config.\r\nPreparing to unpack .../03-fontconfig-config_2.13.1-2ubuntu3_all.deb ...\r\nUnpacking fontconfig-config (2.13.1-2ubuntu3) ...\r\nSelecting previously unselected package gdal-data.\r\nPreparing to unpack .../04-gdal-data_3.0.4+dfsg-1build3_all.deb ...\r\nUnpacking gdal-data (3.0.4+dfsg-1build3) ...\r\nSelecting previously unselected package libaec0:amd64.\r\nPreparing to unpack .../05-libaec0_1.0.4-1_amd64.deb ...\r\nUnpacking libaec0:amd64 (1.0.4-1) ...\r\nSelecting previously unselected package libblas3:amd64.\r\nPreparing to unpack .../06-libblas3_3.9.0-1build1_amd64.deb ...\r\nUnpacking libblas3:amd64 (3.9.0-1build1) ...\r\nSelecting previously unselected package libgfortran5:amd64.\r\nPreparing to unpack .../07-libgfortran5_10.3.0-1ubuntu1~20.04_amd64.deb ...\r\nUnpacking libgfortran5:amd64 (10.3.0-1ubuntu1~20.04) ...\r\nSelecting previously unselected package liblapack3:amd64.\r\nPreparing to unpack .../08-liblapack3_3.9.0-1build1_amd64.deb ...\r\nUnpacking liblapack3:amd64 (3.9.0-1build1) ...\r\nSelecting previously unselected package libarpack2:amd64.\r\nPreparing to unpack .../09-libarpack2_3.7.0-3_amd64.deb ...\r\nUnpacking libarpack2:amd64 (3.7.0-3) ...\r\nSelecting previously unselected package libsuperlu5:amd64.\r\nPreparing to unpack .../10-libsuperlu5_5.2.1+dfsg1-4_amd64.deb ...\r\nUnpacking libsuperlu5:amd64 (5.2.1+dfsg1-4) ...\r\nSelecting previously unselected package libarmadillo9.\r\nPreparing to unpack .../11-libarmadillo9_1%3a9.800.4+dfsg-1build1_amd64.deb ...\r\nUnpacking libarmadillo9 (1:9.800.4+dfsg-1build1) ...\r\nSelecting previously unselected package libboost-serialization1.71.0:amd64.\r\nPreparing to unpack .../12-libboost-serialization1.71.0_1.71.0-6ubuntu6_amd64.deb ...\r\nUnpacking libboost-serialization1.71.0:amd64 (1.71.0-6ubuntu6) ...\r\nSelecting previously unselected package libcfitsio8:amd64.\r\nPreparing to unpack .../13-libcfitsio8_3.470-3_amd64.deb ...\r\nUnpacking libcfitsio8:amd64 (3.470-3) ...\r\nSelecting previously unselected package libcharls2:amd64.\r\nPreparing to unpack .../14-libcharls2_2.0.0+dfsg-1build1_amd64.deb ...\r\nUnpacking libcharls2:amd64 (2.0.0+dfsg-1build1) ...\r\nSelecting previously unselected package libdap25:amd64.\r\nPreparing to unpack .../15-libdap25_3.20.5-1_amd64.deb ...\r\nUnpacking libdap25:amd64 (3.20.5-1) ...\r\nSelecting previously unselected package libdapclient6v5:amd64.\r\nPreparing to unpack .../16-libdapclient6v5_3.20.5-1_amd64.deb ...\r\nUnpacking libdapclient6v5:amd64 (3.20.5-1) ...\r\nSelecting previously unselected package libepsilon1:amd64.\r\nPreparing to unpack .../17-libepsilon1_0.9.2+dfsg-4_amd64.deb ...\r\nUnpacking libepsilon1:amd64 (0.9.2+dfsg-4) ...\r\nSelecting previously unselected package libfreetype6:amd64.\r\nPreparing to unpack .../18-libfreetype6_2.10.1-2ubuntu0.2_amd64.deb ...\r\nUnpacking libfreetype6:amd64 (2.10.1-2ubuntu0.2) ...\r\nSelecting previously unselected package libfontconfig1:amd64.\r\nPreparing to unpack .../19-libfontconfig1_2.13.1-2ubuntu3_amd64.deb ...\r\nUnpacking libfontconfig1:amd64 (2.13.1-2ubuntu3) ...\r\nSelecting previously unselected package libfyba0:amd64.\r\nPreparing to unpack .../20-libfyba0_4.1.1-6build1_amd64.deb ...\r\nUnpacking libfyba0:amd64 (4.1.1-6build1) ...\r\nSelecting previously unselected package libfreexl1:amd64.\r\nPreparing to unpack .../21-libfreexl1_1.0.5-3_amd64.deb ...\r\nUnpacking libfreexl1:amd64 (1.0.5-3) ...\r\nSelecting previously unselected package libgeos-3.8.0:amd64.\r\nPreparing to unpack .../22-libgeos-3.8.0_3.8.0-1build1_amd64.deb ...\r\nUnpacking libgeos-3.8.0:amd64 (3.8.0-1build1) ...\r\nSelecting previously unselected package libgeos-c1v5:amd64.\r\nPreparing to unpack .../23-libgeos-c1v5_3.8.0-1build1_amd64.deb ...\r\nUnpacking libgeos-c1v5:amd64 (3.8.0-1build1) ...\r\nSelecting previously unselected package proj-data.\r\nPreparing to unpack .../24-proj-data_6.3.1-1_all.deb ...\r\nUnpacking proj-data (6.3.1-1) ...\r\nSelecting previously unselected package libproj15:amd64.\r\nPreparing to unpack .../25-libproj15_6.3.1-1_amd64.deb ...\r\nUnpacking libproj15:amd64 (6.3.1-1) ...\r\nSelecting previously unselected package libjbig0:amd64.\r\nPreparing to unpack .../26-libjbig0_2.1-3.1ubuntu0.20.04.1_amd64.deb ...\r\nUnpacking libjbig0:amd64 (2.1-3.1ubuntu0.20.04.1) ...\r\nSelecting previously unselected package libjpeg-turbo8:amd64.\r\nPreparing to unpack .../27-libjpeg-turbo8_2.0.3-0ubuntu1.20.04.3_amd64.deb ...\r\nUnpacking libjpeg-turbo8:amd64 (2.0.3-0ubuntu1.20.04.3) ...\r\nSelecting previously unselected package libjpeg8:amd64.\r\nPreparing to unpack .../28-libjpeg8_8c-2ubuntu8_amd64.deb ...\r\nUnpacking libjpeg8:amd64 (8c-2ubuntu8) ...\r\nSelecting previously unselected package libwebp6:amd64.\r\nPreparing to unpack .../29-libwebp6_0.6.1-2ubuntu0.20.04.1_amd64.deb ...\r\nUnpacking libwebp6:amd64 (0.6.1-2ubuntu0.20.04.1) ...\r\nSelecting previously unselected package libtiff5:amd64.\r\nPreparing to unpack .../30-libtiff5_4.1.0+git191117-2ubuntu0.20.04.6_amd64.deb ...\r\nUnpacking libtiff5:amd64 (4.1.0+git191117-2ubuntu0.20.04.6) ...\r\nSelecting previously unselected package libgeotiff5:amd64.\r\nPreparing to unpack .../31-libgeotiff5_1.5.1-2_amd64.deb ...\r\nUnpacking libgeotiff5:amd64 (1.5.1-2) ...\r\nSelecting previously unselected package libgif7:amd64.\r\nPreparing to unpack .../32-libgif7_5.1.9-1_amd64.deb ...\r\nUnpacking libgif7:amd64 (5.1.9-1) ...\r\nSelecting previously unselected package libhdf4-0-alt.\r\nPreparing to unpack .../33-libhdf4-0-alt_4.2.14-1ubuntu1_amd64.deb ...\r\nUnpacking libhdf4-0-alt (4.2.14-1ubuntu1) ...\r\nSelecting previously unselected package libsz2:amd64.\r\nPreparing to unpack .../34-libsz2_1.0.4-1_amd64.deb ...\r\nUnpacking libsz2:amd64 (1.0.4-1) ...\r\nSelecting previously unselected package libhdf5-103:amd64.\r\nPreparing to unpack .../35-libhdf5-103_1.10.4+repack-11ubuntu1_amd64.deb ...\r\nUnpacking libhdf5-103:amd64 (1.10.4+repack-11ubuntu1) ...\r\nSelecting previously unselected package libminizip1:amd64.\r\nPreparing to unpack .../36-libminizip1_1.1-8build1_amd64.deb ...\r\nUnpacking libminizip1:amd64 (1.1-8build1) ...\r\nSelecting previously unselected package liburiparser1:amd64.\r\nPreparing to unpack .../37-liburiparser1_0.9.3-2_amd64.deb ...\r\nUnpacking liburiparser1:amd64 (0.9.3-2) ...\r\nSelecting previously unselected package libkmlbase1:amd64.\r\nPreparing to unpack .../38-libkmlbase1_1.3.0-8build1_amd64.deb ...\r\nUnpacking libkmlbase1:amd64 (1.3.0-8build1) ...\r\nSelecting previously unselected package libkmldom1:amd64.\r\nPreparing to unpack .../39-libkmldom1_1.3.0-8build1_amd64.deb ...\r\nUnpacking libkmldom1:amd64 (1.3.0-8build1) ...\r\nSelecting previously unselected package libkmlengine1:amd64.\r\nPreparing to unpack .../40-libkmlengine1_1.3.0-8build1_amd64.deb ...\r\nUnpacking libkmlengine1:amd64 (1.3.0-8build1) ...\r\nSelecting previously unselected package mysql-common.\r\nPreparing to unpack .../41-mysql-common_5.8+1.0.5ubuntu2_all.deb ...\r\nUnpacking mysql-common (5.8+1.0.5ubuntu2) ...\r\nSelecting previously unselected package libmysqlclient21:amd64.\r\nPreparing to unpack .../42-libmysqlclient21_8.0.31-0ubuntu0.20.04.1_amd64.deb ...\r\nUnpacking libmysqlclient21:amd64 (8.0.31-0ubuntu0.20.04.1) ...\r\nSelecting previously unselected package libnetcdf15:amd64.\r\nPreparing to unpack .../43-libnetcdf15_1%3a4.7.3-1_amd64.deb ...\r\nUnpacking libnetcdf15:amd64 (1:4.7.3-1) ...\r\nSelecting previously unselected package libltdl7:amd64.\r\nPreparing to unpack .../44-libltdl7_2.4.6-14_amd64.deb ...\r\nUnpacking libltdl7:amd64 (2.4.6-14) ...\r\nSelecting previously unselected package libodbc1:amd64.\r\nPreparing to unpack .../45-libodbc1_2.3.6-0.1build1_amd64.deb ...\r\nUnpacking libodbc1:amd64 (2.3.6-0.1build1) ...\r\nSelecting previously unselected package libogdi4.1.\r\nPreparing to unpack .../46-libogdi4.1_4.1.0+ds-1build1_amd64.deb ...\r\nUnpacking libogdi4.1 (4.1.0+ds-1build1) ...\r\nSelecting previously unselected package libopenjp2-7:amd64.\r\nPreparing to unpack .../47-libopenjp2-7_2.3.1-1ubuntu4.20.04.1_amd64.deb ...\r\nUnpacking libopenjp2-7:amd64 (2.3.1-1ubuntu4.20.04.1) ...\r\nSelecting previously unselected package liblcms2-2:amd64.\r\nPreparing to unpack .../48-liblcms2-2_2.9-4_amd64.deb ...\r\nUnpacking liblcms2-2:amd64 (2.9-4) ...\r\nSelecting previously unselected package libnspr4:amd64.\r\nPreparing to unpack .../49-libnspr4_2%3a4.25-1_amd64.deb ...\r\nUnpacking libnspr4:amd64 (2:4.25-1) ...\r\nSelecting previously unselected package libnss3:amd64.\r\nPreparing to unpack .../50-libnss3_2%3a3.49.1-1ubuntu1.8_amd64.deb ...\r\nUnpacking libnss3:amd64 (2:3.49.1-1ubuntu1.8) ...\r\nSelecting previously unselected package libpoppler97:amd64.\r\nPreparing to unpack .../51-libpoppler97_0.86.1-0ubuntu1.1_amd64.deb ...\r\nUnpacking libpoppler97:amd64 (0.86.1-0ubuntu1.1) ...\r\nSelecting previously unselected package libqhull7:amd64.\r\nPreparing to unpack .../52-libqhull7_2015.2-4_amd64.deb ...\r\nUnpacking libqhull7:amd64 (2015.2-4) ...\r\nSelecting previously unselected package libspatialite7:amd64.\r\nPreparing to unpack .../53-libspatialite7_4.3.0a-6build1_amd64.deb ...\r\nUnpacking libspatialite7:amd64 (4.3.0a-6build1) ...\r\nSelecting previously unselected package libxerces-c3.2:amd64.\r\nPreparing to unpack .../54-libxerces-c3.2_3.2.2+debian-1build3_amd64.deb ...\r\nUnpacking libxerces-c3.2:amd64 (3.2.2+debian-1build3) ...\r\nSelecting previously unselected package odbcinst.\r\nPreparing to unpack .../55-odbcinst_2.3.6-0.1build1_amd64.deb ...\r\nUnpacking odbcinst (2.3.6-0.1build1) ...\r\nSelecting previously unselected package odbcinst1debian2:amd64.\r\nPreparing to unpack .../56-odbcinst1debian2_2.3.6-0.1build1_amd64.deb ...\r\nUnpacking odbcinst1debian2:amd64 (2.3.6-0.1build1) ...\r\nSelecting previously unselected package libgdal26.\r\nPreparing to unpack .../57-libgdal26_3.0.4+dfsg-1build3_amd64.deb ...\r\nUnpacking libgdal26 (3.0.4+dfsg-1build3) ...\r\nSelecting previously unselected package libgmpxx4ldbl:amd64.\r\nPreparing to unpack .../58-libgmpxx4ldbl_2%3a6.2.0+dfsg-4ubuntu0.1_amd64.deb ...\r\nUnpacking libgmpxx4ldbl:amd64 (2:6.2.0+dfsg-4ubuntu0.1) ...\r\nSelecting previously unselected package libprotobuf-c1:amd64.\r\nPreparing to unpack .../59-libprotobuf-c1_1.3.3-1ubuntu0.1_amd64.deb ...\r\nUnpacking libprotobuf-c1:amd64 (1.3.3-1ubuntu0.1) ...\r\nSelecting previously unselected package libsfcgal1.\r\nPreparing to unpack .../60-libsfcgal1_1.3.7-4ubuntu3_amd64.deb ...\r\nUnpacking libsfcgal1 (1.3.7-4ubuntu3) ...\r\nSelecting previously unselected package postgresql-14-postgis-3-scripts.\r\nPreparing to unpack .../61-postgresql-14-postgis-3-scripts_3.3.2+dfsg-1.pgdg20.04+1_all.deb ...\r\nUnpacking postgresql-14-postgis-3-scripts (3.3.2+dfsg-1.pgdg20.04+1) ...\r\nSelecting previously unselected package postgresql-14-postgis-3.\r\nPreparing to unpack .../62-postgresql-14-postgis-3_3.3.2+dfsg-1.pgdg20.04+1_amd64.deb ...\r\nUnpacking postgresql-14-postgis-3 (3.3.2+dfsg-1.pgdg20.04+1) ...\r\nSelecting previously unselected package proj-bin.\r\nPreparing to unpack .../63-proj-bin_6.3.1-1_amd64.deb ...\r\nUnpacking proj-bin (6.3.1-1) ...\r\nSetting up liblcms2-2:amd64 (2.9-4) ...\r\nSetting up mysql-common (5.8+1.0.5ubuntu2) ...\r\nupdate-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode\r\nSetting up libmysqlclient21:amd64 (8.0.31-0ubuntu0.20.04.1) ...\r\nSetting up libxerces-c3.2:amd64 (3.2.2+debian-1build3) ...\r\nSetting up proj-data (6.3.1-1) ...\r\nSetting up libgeos-3.8.0:amd64 (3.8.0-1build1) ...\r\nSetting up libogdi4.1 (4.1.0+ds-1build1) ...\r\nSetting up libcharls2:amd64 (2.0.0+dfsg-1build1) ...\r\nSetting up libminizip1:amd64 (1.1-8build1) ...\r\nSetting up libdap25:amd64 (3.20.5-1) ...\r\nSetting up libqhull7:amd64 (2015.2-4) ...\r\nSetting up libepsilon1:amd64 (0.9.2+dfsg-4) ...\r\nSetting up postgresql-14-postgis-3-scripts (3.3.2+dfsg-1.pgdg20.04+1) ...\r\nupdate-alternatives: using /usr/share/postgresql/14/extension/postgis-3.control to provide /usr/share/postgresql/14/extension/postgis.control (postgresql-14-postgis.control) in auto mode\r\nSetting up libprotobuf-c1:amd64 (1.3.3-1ubuntu0.1) ...\r\nSetting up libjbig0:amd64 (2.1-3.1ubuntu0.20.04.1) ...\r\nSetting up libaec0:amd64 (1.0.4-1) ...\r\nSetting up gdal-data (3.0.4+dfsg-1build3) ...\r\nSetting up poppler-data (0.4.9-2) ...\r\nSetting up libblas3:amd64 (3.9.0-1build1) ...\r\nupdate-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode\r\nSetting up libcfitsio8:amd64 (3.470-3) ...\r\nSetting up libgmpxx4ldbl:amd64 (2:6.2.0+dfsg-4ubuntu0.1) ...\r\nSetting up libnspr4:amd64 (2:4.25-1) ...\r\nSetting up libpng16-16:amd64 (1.6.37-2) ...\r\nSetting up libwebp6:amd64 (0.6.1-2ubuntu0.20.04.1) ...\r\nSetting up libgeos-c1v5:amd64 (3.8.0-1build1) ...\r\nSetting up fonts-dejavu-core (2.37-1) ...\r\nSetting up libproj15:amd64 (6.3.1-1) ...\r\nSetting up libjpeg-turbo8:amd64 (2.0.3-0ubuntu1.20.04.3) ...\r\nSetting up libltdl7:amd64 (2.4.6-14) ...\r\nSetting up libgfortran5:amd64 (10.3.0-1ubuntu1~20.04) ...\r\nSetting up libgif7:amd64 (5.1.9-1) ...\r\nSetting up liburiparser1:amd64 (0.9.3-2) ...\r\nSetting up libfreexl1:amd64 (1.0.5-3) ...\r\nSetting up libfyba0:amd64 (4.1.1-6build1) ...\r\nSetting up libkmlbase1:amd64 (1.3.0-8build1) ...\r\nSetting up libdapclient6v5:amd64 (3.20.5-1) ...\r\nSetting up libopenjp2-7:amd64 (2.3.1-1ubuntu4.20.04.1) ...\r\nSetting up libboost-serialization1.71.0:amd64 (1.71.0-6ubuntu6) ...\r\nSetting up libsfcgal1 (1.3.7-4ubuntu3) ...\r\nSetting up libsz2:amd64 (1.0.4-1) ...\r\nSetting up libkmldom1:amd64 (1.3.0-8build1) ...\r\nSetting up libjpeg8:amd64 (8c-2ubuntu8) ...\r\nSetting up libspatialite7:amd64 (4.3.0a-6build1) ...\r\nSetting up liblapack3:amd64 (3.9.0-1build1) ...\r\nupdate-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode\r\nSetting up libkmlengine1:amd64 (1.3.0-8build1) ...\r\nSetting up fontconfig-config (2.13.1-2ubuntu3) ...\r\nSetting up libarpack2:amd64 (3.7.0-3) ...\r\nSetting up libsuperlu5:amd64 (5.2.1+dfsg1-4) ...\r\nSetting up proj-bin (6.3.1-1) ...\r\nSetting up libnss3:amd64 (2:3.49.1-1ubuntu1.8) ...\r\nSetting up libfreetype6:amd64 (2.10.1-2ubuntu0.2) ...\r\nSetting up libhdf5-103:amd64 (1.10.4+repack-11ubuntu1) ...\r\nSetting up libodbc1:amd64 (2.3.6-0.1build1) ...\r\nSetting up libhdf4-0-alt (4.2.14-1ubuntu1) ...\r\nSetting up libtiff5:amd64 (4.1.0+git191117-2ubuntu0.20.04.6) ...\r\nSetting up libarmadillo9 (1:9.800.4+dfsg-1build1) ...\r\nSetting up libgeotiff5:amd64 (1.5.1-2) ...\r\nSetting up libnetcdf15:amd64 (1:4.7.3-1) ...\r\nSetting up odbcinst (2.3.6-0.1build1) ...\r\nSetting up odbcinst1debian2:amd64 (2.3.6-0.1build1) ...\r\nProcessing triggers for libc-bin (2.31-0ubuntu9.9) ...\r\nProcessing triggers for man-db (2.9.1-1) ...\r\nProcessing triggers for postgresql-common (246.pgdg20.04+1) ...\r\nBuilding PostgreSQL dictionaries from installed myspell/hunspell packages...\r\nRemoving obsolete dictionary files:\r\nProcessing triggers for sgml-base (1.29.1) ...\r\nSetting up libfontconfig1:amd64 (2.13.1-2ubuntu3) ...\r\nSetting up libpoppler97:amd64 (0.86.1-0ubuntu1.1) ...\r\nSetting up libgdal26 (3.0.4+dfsg-1build3) ...\r\nSetting up postgresql-14-postgis-3 (3.3.2+dfsg-1.pgdg20.04+1) ...\r\nProcessing triggers for libc-bin (2.31-0ubuntu9.9) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following additional packages will be installed:", " fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9", " libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2", " libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1", " libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5", " libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8", " libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7", " libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1", " libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1", " libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5", " liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2", " poppler-data postgresql-14-postgis-3-scripts proj-bin proj-data", "Suggested packages:", " geotiff-bin gdal-bin libgeotiff-epsg libhdf4-doc libhdf4-alt-dev hdf4-tools", " liblcms2-utils libmyodbc odbc-postgresql tdsodbc unixodbc-bin ogdi-bin", " poppler-utils ghostscript fonts-japanese-mincho | fonts-ipafont-mincho", " fonts-japanese-gothic | fonts-ipafont-gothic fonts-arphic-ukai", " fonts-arphic-uming fonts-nanum postgis", "The following NEW packages will be installed:", " fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9", " libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2", " libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1", " libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5", " libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8", " libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7", " libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1", " libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1", " libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5", " liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2", " poppler-data postgresql-14-postgis-3 postgresql-14-postgis-3-scripts", " proj-bin proj-data", "0 upgraded, 64 newly installed, 0 to remove and 36 not upgraded.", "Need to get 40.2 MB of archives.", "After this operation, 194 MB of additional disk space will be used.", "Get:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-14-postgis-3-scripts all 3.3.2+dfsg-1.pgdg20.04+1 [1334 kB]", "Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 poppler-data all 0.4.9-2 [1475 kB]", "Get:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-14-postgis-3 amd64 3.3.2+dfsg-1.pgdg20.04+1 [3692 kB]", "Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libpng16-16 amd64 1.6.37-2 [179 kB]", "Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]", "Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 fontconfig-config all 2.13.1-2ubuntu3 [28.8 kB]", "Get:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 gdal-data all 3.0.4+dfsg-1build3 [186 kB]", "Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 libaec0 amd64 1.0.4-1 [19.1 kB]", "Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 libblas3 amd64 3.9.0-1build1 [142 kB]", "Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgfortran5 amd64 10.3.0-1ubuntu1~20.04 [736 kB]", "Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 liblapack3 amd64 3.9.0-1build1 [2154 kB]", "Get:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 libarpack2 amd64 3.7.0-3 [92.8 kB]", "Get:13 http://archive.ubuntu.com/ubuntu focal/universe amd64 libsuperlu5 amd64 5.2.1+dfsg1-4 [159 kB]", "Get:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 libarmadillo9 amd64 1:9.800.4+dfsg-1build1 [93.2 kB]", "Get:15 http://archive.ubuntu.com/ubuntu focal/main amd64 libboost-serialization1.71.0 amd64 1.71.0-6ubuntu6 [302 kB]", "Get:16 http://archive.ubuntu.com/ubuntu focal/universe amd64 libcfitsio8 amd64 3.470-3 [466 kB]", "Get:17 http://archive.ubuntu.com/ubuntu focal/universe amd64 libcharls2 amd64 2.0.0+dfsg-1build1 [74.1 kB]", "Get:18 http://archive.ubuntu.com/ubuntu focal/universe amd64 libdap25 amd64 3.20.5-1 [435 kB]", "Get:19 http://archive.ubuntu.com/ubuntu focal/universe amd64 libdapclient6v5 amd64 3.20.5-1 [92.2 kB]", "Get:20 http://archive.ubuntu.com/ubuntu focal/universe amd64 libepsilon1 amd64 0.9.2+dfsg-4 [41.0 kB]", "Get:21 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libfreetype6 amd64 2.10.1-2ubuntu0.2 [341 kB]", "Get:22 http://archive.ubuntu.com/ubuntu focal/main amd64 libfontconfig1 amd64 2.13.1-2ubuntu3 [114 kB]", "Get:23 http://archive.ubuntu.com/ubuntu focal/universe amd64 libfyba0 amd64 4.1.1-6build1 [113 kB]", "Get:24 http://archive.ubuntu.com/ubuntu focal/universe amd64 libfreexl1 amd64 1.0.5-3 [33.4 kB]", "Get:25 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgeos-3.8.0 amd64 3.8.0-1build1 [535 kB]", "Get:26 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgeos-c1v5 amd64 3.8.0-1build1 [69.9 kB]", "Get:27 http://archive.ubuntu.com/ubuntu focal/universe amd64 proj-data all 6.3.1-1 [7647 kB]", "Get:28 http://archive.ubuntu.com/ubuntu focal/universe amd64 libproj15 amd64 6.3.1-1 [925 kB]", "Get:29 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libjbig0 amd64 2.1-3.1ubuntu0.20.04.1 [27.3 kB]", "Get:30 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libjpeg-turbo8 amd64 2.0.3-0ubuntu1.20.04.3 [118 kB]", "Get:31 http://archive.ubuntu.com/ubuntu focal/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2194 B]", "Get:32 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libwebp6 amd64 0.6.1-2ubuntu0.20.04.1 [185 kB]", "Get:33 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libtiff5 amd64 4.1.0+git191117-2ubuntu0.20.04.6 [163 kB]", "Get:34 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgeotiff5 amd64 1.5.1-2 [53.1 kB]", "Get:35 http://archive.ubuntu.com/ubuntu focal/main amd64 libgif7 amd64 5.1.9-1 [32.2 kB]", "Get:36 http://archive.ubuntu.com/ubuntu focal/universe amd64 libhdf4-0-alt amd64 4.2.14-1ubuntu1 [268 kB]", "Get:37 http://archive.ubuntu.com/ubuntu focal/universe amd64 libsz2 amd64 1.0.4-1 [5188 B]", "Get:38 http://archive.ubuntu.com/ubuntu focal/universe amd64 libhdf5-103 amd64 1.10.4+repack-11ubuntu1 [1311 kB]", "Get:39 http://archive.ubuntu.com/ubuntu focal/universe amd64 libminizip1 amd64 1.1-8build1 [20.2 kB]", "Get:40 http://archive.ubuntu.com/ubuntu focal/universe amd64 liburiparser1 amd64 0.9.3-2 [39.3 kB]", "Get:41 http://archive.ubuntu.com/ubuntu focal/universe amd64 libkmlbase1 amd64 1.3.0-8build1 [45.4 kB]", "Get:42 http://archive.ubuntu.com/ubuntu focal/universe amd64 libkmldom1 amd64 1.3.0-8build1 [152 kB]", "Get:43 http://archive.ubuntu.com/ubuntu focal/universe amd64 libkmlengine1 amd64 1.3.0-8build1 [72.5 kB]", "Get:44 http://archive.ubuntu.com/ubuntu focal/main amd64 mysql-common all 5.8+1.0.5ubuntu2 [7496 B]", "Get:45 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libmysqlclient21 amd64 8.0.31-0ubuntu0.20.04.1 [1327 kB]", "Get:46 http://archive.ubuntu.com/ubuntu focal/universe amd64 libnetcdf15 amd64 1:4.7.3-1 [341 kB]", "Get:47 http://archive.ubuntu.com/ubuntu focal/main amd64 libltdl7 amd64 2.4.6-14 [38.5 kB]", "Get:48 http://archive.ubuntu.com/ubuntu focal/main amd64 libodbc1 amd64 2.3.6-0.1build1 [189 kB]", "Get:49 http://archive.ubuntu.com/ubuntu focal/universe amd64 libogdi4.1 amd64 4.1.0+ds-1build1 [198 kB]", "Get:50 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libopenjp2-7 amd64 2.3.1-1ubuntu4.20.04.1 [141 kB]", "Get:51 http://archive.ubuntu.com/ubuntu focal/main amd64 liblcms2-2 amd64 2.9-4 [140 kB]", "Get:52 http://archive.ubuntu.com/ubuntu focal/main amd64 libnspr4 amd64 2:4.25-1 [107 kB]", "Get:53 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss3 amd64 2:3.49.1-1ubuntu1.8 [1256 kB]", "Get:54 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpoppler97 amd64 0.86.1-0ubuntu1.1 [916 kB]", "Get:55 http://archive.ubuntu.com/ubuntu focal/universe amd64 libqhull7 amd64 2015.2-4 [152 kB]", "Get:56 http://archive.ubuntu.com/ubuntu focal/universe amd64 libspatialite7 amd64 4.3.0a-6build1 [1286 kB]", "Get:57 http://archive.ubuntu.com/ubuntu focal/universe amd64 libxerces-c3.2 amd64 3.2.2+debian-1build3 [878 kB]", "Get:58 http://archive.ubuntu.com/ubuntu focal/main amd64 odbcinst amd64 2.3.6-0.1build1 [14.8 kB]", "Get:59 http://archive.ubuntu.com/ubuntu focal/main amd64 odbcinst1debian2 amd64 2.3.6-0.1build1 [41.1 kB]", "Get:60 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgdal26 amd64 3.0.4+dfsg-1build3 [6156 kB]", "Get:61 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgmpxx4ldbl amd64 2:6.2.0+dfsg-4ubuntu0.1 [9144 B]", "Get:62 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libprotobuf-c1 amd64 1.3.3-1ubuntu0.1 [19.3 kB]", "Get:63 http://archive.ubuntu.com/ubuntu focal/universe amd64 libsfcgal1 amd64 1.3.7-4ubuntu3 [1926 kB]", "Get:64 http://archive.ubuntu.com/ubuntu focal/universe amd64 proj-bin amd64 6.3.1-1 [88.8 kB]", "Fetched 40.2 MB in 6s (7280 kB/s)", "Selecting previously unselected package poppler-data.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 25526 files and directories currently installed.)", "Preparing to unpack .../00-poppler-data_0.4.9-2_all.deb ...", "Unpacking poppler-data (0.4.9-2) ...", "Selecting previously unselected package libpng16-16:amd64.", "Preparing to unpack .../01-libpng16-16_1.6.37-2_amd64.deb ...", "Unpacking libpng16-16:amd64 (1.6.37-2) ...", "Selecting previously unselected package fonts-dejavu-core.", "Preparing to unpack .../02-fonts-dejavu-core_2.37-1_all.deb ...", "Unpacking fonts-dejavu-core (2.37-1) ...", "Selecting previously unselected package fontconfig-config.", "Preparing to unpack .../03-fontconfig-config_2.13.1-2ubuntu3_all.deb ...", "Unpacking fontconfig-config (2.13.1-2ubuntu3) ...", "Selecting previously unselected package gdal-data.", "Preparing to unpack .../04-gdal-data_3.0.4+dfsg-1build3_all.deb ...", "Unpacking gdal-data (3.0.4+dfsg-1build3) ...", "Selecting previously unselected package libaec0:amd64.", "Preparing to unpack .../05-libaec0_1.0.4-1_amd64.deb ...", "Unpacking libaec0:amd64 (1.0.4-1) ...", "Selecting previously unselected package libblas3:amd64.", "Preparing to unpack .../06-libblas3_3.9.0-1build1_amd64.deb ...", "Unpacking libblas3:amd64 (3.9.0-1build1) ...", "Selecting previously unselected package libgfortran5:amd64.", "Preparing to unpack .../07-libgfortran5_10.3.0-1ubuntu1~20.04_amd64.deb ...", "Unpacking libgfortran5:amd64 (10.3.0-1ubuntu1~20.04) ...", "Selecting previously unselected package liblapack3:amd64.", "Preparing to unpack .../08-liblapack3_3.9.0-1build1_amd64.deb ...", "Unpacking liblapack3:amd64 (3.9.0-1build1) ...", "Selecting previously unselected package libarpack2:amd64.", "Preparing to unpack .../09-libarpack2_3.7.0-3_amd64.deb ...", "Unpacking libarpack2:amd64 (3.7.0-3) ...", "Selecting previously unselected package libsuperlu5:amd64.", "Preparing to unpack .../10-libsuperlu5_5.2.1+dfsg1-4_amd64.deb ...", "Unpacking libsuperlu5:amd64 (5.2.1+dfsg1-4) ...", "Selecting previously unselected package libarmadillo9.", "Preparing to unpack .../11-libarmadillo9_1%3a9.800.4+dfsg-1build1_amd64.deb ...", "Unpacking libarmadillo9 (1:9.800.4+dfsg-1build1) ...", "Selecting previously unselected package libboost-serialization1.71.0:amd64.", "Preparing to unpack .../12-libboost-serialization1.71.0_1.71.0-6ubuntu6_amd64.deb ...", "Unpacking libboost-serialization1.71.0:amd64 (1.71.0-6ubuntu6) ...", "Selecting previously unselected package libcfitsio8:amd64.", "Preparing to unpack .../13-libcfitsio8_3.470-3_amd64.deb ...", "Unpacking libcfitsio8:amd64 (3.470-3) ...", "Selecting previously unselected package libcharls2:amd64.", "Preparing to unpack .../14-libcharls2_2.0.0+dfsg-1build1_amd64.deb ...", "Unpacking libcharls2:amd64 (2.0.0+dfsg-1build1) ...", "Selecting previously unselected package libdap25:amd64.", "Preparing to unpack .../15-libdap25_3.20.5-1_amd64.deb ...", "Unpacking libdap25:amd64 (3.20.5-1) ...", "Selecting previously unselected package libdapclient6v5:amd64.", "Preparing to unpack .../16-libdapclient6v5_3.20.5-1_amd64.deb ...", "Unpacking libdapclient6v5:amd64 (3.20.5-1) ...", "Selecting previously unselected package libepsilon1:amd64.", "Preparing to unpack .../17-libepsilon1_0.9.2+dfsg-4_amd64.deb ...", "Unpacking libepsilon1:amd64 (0.9.2+dfsg-4) ...", "Selecting previously unselected package libfreetype6:amd64.", "Preparing to unpack .../18-libfreetype6_2.10.1-2ubuntu0.2_amd64.deb ...", "Unpacking libfreetype6:amd64 (2.10.1-2ubuntu0.2) ...", "Selecting previously unselected package libfontconfig1:amd64.", "Preparing to unpack .../19-libfontconfig1_2.13.1-2ubuntu3_amd64.deb ...", "Unpacking libfontconfig1:amd64 (2.13.1-2ubuntu3) ...", "Selecting previously unselected package libfyba0:amd64.", "Preparing to unpack .../20-libfyba0_4.1.1-6build1_amd64.deb ...", "Unpacking libfyba0:amd64 (4.1.1-6build1) ...", "Selecting previously unselected package libfreexl1:amd64.", "Preparing to unpack .../21-libfreexl1_1.0.5-3_amd64.deb ...", "Unpacking libfreexl1:amd64 (1.0.5-3) ...", "Selecting previously unselected package libgeos-3.8.0:amd64.", "Preparing to unpack .../22-libgeos-3.8.0_3.8.0-1build1_amd64.deb ...", "Unpacking libgeos-3.8.0:amd64 (3.8.0-1build1) ...", "Selecting previously unselected package libgeos-c1v5:amd64.", "Preparing to unpack .../23-libgeos-c1v5_3.8.0-1build1_amd64.deb ...", "Unpacking libgeos-c1v5:amd64 (3.8.0-1build1) ...", "Selecting previously unselected package proj-data.", "Preparing to unpack .../24-proj-data_6.3.1-1_all.deb ...", "Unpacking proj-data (6.3.1-1) ...", "Selecting previously unselected package libproj15:amd64.", "Preparing to unpack .../25-libproj15_6.3.1-1_amd64.deb ...", "Unpacking libproj15:amd64 (6.3.1-1) ...", "Selecting previously unselected package libjbig0:amd64.", "Preparing to unpack .../26-libjbig0_2.1-3.1ubuntu0.20.04.1_amd64.deb ...", "Unpacking libjbig0:amd64 (2.1-3.1ubuntu0.20.04.1) ...", "Selecting previously unselected package libjpeg-turbo8:amd64.", "Preparing to unpack .../27-libjpeg-turbo8_2.0.3-0ubuntu1.20.04.3_amd64.deb ...", "Unpacking libjpeg-turbo8:amd64 (2.0.3-0ubuntu1.20.04.3) ...", "Selecting previously unselected package libjpeg8:amd64.", "Preparing to unpack .../28-libjpeg8_8c-2ubuntu8_amd64.deb ...", "Unpacking libjpeg8:amd64 (8c-2ubuntu8) ...", "Selecting previously unselected package libwebp6:amd64.", "Preparing to unpack .../29-libwebp6_0.6.1-2ubuntu0.20.04.1_amd64.deb ...", "Unpacking libwebp6:amd64 (0.6.1-2ubuntu0.20.04.1) ...", "Selecting previously unselected package libtiff5:amd64.", "Preparing to unpack .../30-libtiff5_4.1.0+git191117-2ubuntu0.20.04.6_amd64.deb ...", "Unpacking libtiff5:amd64 (4.1.0+git191117-2ubuntu0.20.04.6) ...", "Selecting previously unselected package libgeotiff5:amd64.", "Preparing to unpack .../31-libgeotiff5_1.5.1-2_amd64.deb ...", "Unpacking libgeotiff5:amd64 (1.5.1-2) ...", "Selecting previously unselected package libgif7:amd64.", "Preparing to unpack .../32-libgif7_5.1.9-1_amd64.deb ...", "Unpacking libgif7:amd64 (5.1.9-1) ...", "Selecting previously unselected package libhdf4-0-alt.", "Preparing to unpack .../33-libhdf4-0-alt_4.2.14-1ubuntu1_amd64.deb ...", "Unpacking libhdf4-0-alt (4.2.14-1ubuntu1) ...", "Selecting previously unselected package libsz2:amd64.", "Preparing to unpack .../34-libsz2_1.0.4-1_amd64.deb ...", "Unpacking libsz2:amd64 (1.0.4-1) ...", "Selecting previously unselected package libhdf5-103:amd64.", "Preparing to unpack .../35-libhdf5-103_1.10.4+repack-11ubuntu1_amd64.deb ...", "Unpacking libhdf5-103:amd64 (1.10.4+repack-11ubuntu1) ...", "Selecting previously unselected package libminizip1:amd64.", "Preparing to unpack .../36-libminizip1_1.1-8build1_amd64.deb ...", "Unpacking libminizip1:amd64 (1.1-8build1) ...", "Selecting previously unselected package liburiparser1:amd64.", "Preparing to unpack .../37-liburiparser1_0.9.3-2_amd64.deb ...", "Unpacking liburiparser1:amd64 (0.9.3-2) ...", "Selecting previously unselected package libkmlbase1:amd64.", "Preparing to unpack .../38-libkmlbase1_1.3.0-8build1_amd64.deb ...", "Unpacking libkmlbase1:amd64 (1.3.0-8build1) ...", "Selecting previously unselected package libkmldom1:amd64.", "Preparing to unpack .../39-libkmldom1_1.3.0-8build1_amd64.deb ...", "Unpacking libkmldom1:amd64 (1.3.0-8build1) ...", "Selecting previously unselected package libkmlengine1:amd64.", "Preparing to unpack .../40-libkmlengine1_1.3.0-8build1_amd64.deb ...", "Unpacking libkmlengine1:amd64 (1.3.0-8build1) ...", "Selecting previously unselected package mysql-common.", "Preparing to unpack .../41-mysql-common_5.8+1.0.5ubuntu2_all.deb ...", "Unpacking mysql-common (5.8+1.0.5ubuntu2) ...", "Selecting previously unselected package libmysqlclient21:amd64.", "Preparing to unpack .../42-libmysqlclient21_8.0.31-0ubuntu0.20.04.1_amd64.deb ...", "Unpacking libmysqlclient21:amd64 (8.0.31-0ubuntu0.20.04.1) ...", "Selecting previously unselected package libnetcdf15:amd64.", "Preparing to unpack .../43-libnetcdf15_1%3a4.7.3-1_amd64.deb ...", "Unpacking libnetcdf15:amd64 (1:4.7.3-1) ...", "Selecting previously unselected package libltdl7:amd64.", "Preparing to unpack .../44-libltdl7_2.4.6-14_amd64.deb ...", "Unpacking libltdl7:amd64 (2.4.6-14) ...", "Selecting previously unselected package libodbc1:amd64.", "Preparing to unpack .../45-libodbc1_2.3.6-0.1build1_amd64.deb ...", "Unpacking libodbc1:amd64 (2.3.6-0.1build1) ...", "Selecting previously unselected package libogdi4.1.", "Preparing to unpack .../46-libogdi4.1_4.1.0+ds-1build1_amd64.deb ...", "Unpacking libogdi4.1 (4.1.0+ds-1build1) ...", "Selecting previously unselected package libopenjp2-7:amd64.", "Preparing to unpack .../47-libopenjp2-7_2.3.1-1ubuntu4.20.04.1_amd64.deb ...", "Unpacking libopenjp2-7:amd64 (2.3.1-1ubuntu4.20.04.1) ...", "Selecting previously unselected package liblcms2-2:amd64.", "Preparing to unpack .../48-liblcms2-2_2.9-4_amd64.deb ...", "Unpacking liblcms2-2:amd64 (2.9-4) ...", "Selecting previously unselected package libnspr4:amd64.", "Preparing to unpack .../49-libnspr4_2%3a4.25-1_amd64.deb ...", "Unpacking libnspr4:amd64 (2:4.25-1) ...", "Selecting previously unselected package libnss3:amd64.", "Preparing to unpack .../50-libnss3_2%3a3.49.1-1ubuntu1.8_amd64.deb ...", "Unpacking libnss3:amd64 (2:3.49.1-1ubuntu1.8) ...", "Selecting previously unselected package libpoppler97:amd64.", "Preparing to unpack .../51-libpoppler97_0.86.1-0ubuntu1.1_amd64.deb ...", "Unpacking libpoppler97:amd64 (0.86.1-0ubuntu1.1) ...", "Selecting previously unselected package libqhull7:amd64.", "Preparing to unpack .../52-libqhull7_2015.2-4_amd64.deb ...", "Unpacking libqhull7:amd64 (2015.2-4) ...", "Selecting previously unselected package libspatialite7:amd64.", "Preparing to unpack .../53-libspatialite7_4.3.0a-6build1_amd64.deb ...", "Unpacking libspatialite7:amd64 (4.3.0a-6build1) ...", "Selecting previously unselected package libxerces-c3.2:amd64.", "Preparing to unpack .../54-libxerces-c3.2_3.2.2+debian-1build3_amd64.deb ...", "Unpacking libxerces-c3.2:amd64 (3.2.2+debian-1build3) ...", "Selecting previously unselected package odbcinst.", "Preparing to unpack .../55-odbcinst_2.3.6-0.1build1_amd64.deb ...", "Unpacking odbcinst (2.3.6-0.1build1) ...", "Selecting previously unselected package odbcinst1debian2:amd64.", "Preparing to unpack .../56-odbcinst1debian2_2.3.6-0.1build1_amd64.deb ...", "Unpacking odbcinst1debian2:amd64 (2.3.6-0.1build1) ...", "Selecting previously unselected package libgdal26.", "Preparing to unpack .../57-libgdal26_3.0.4+dfsg-1build3_amd64.deb ...", "Unpacking libgdal26 (3.0.4+dfsg-1build3) ...", "Selecting previously unselected package libgmpxx4ldbl:amd64.", "Preparing to unpack .../58-libgmpxx4ldbl_2%3a6.2.0+dfsg-4ubuntu0.1_amd64.deb ...", "Unpacking libgmpxx4ldbl:amd64 (2:6.2.0+dfsg-4ubuntu0.1) ...", "Selecting previously unselected package libprotobuf-c1:amd64.", "Preparing to unpack .../59-libprotobuf-c1_1.3.3-1ubuntu0.1_amd64.deb ...", "Unpacking libprotobuf-c1:amd64 (1.3.3-1ubuntu0.1) ...", "Selecting previously unselected package libsfcgal1.", "Preparing to unpack .../60-libsfcgal1_1.3.7-4ubuntu3_amd64.deb ...", "Unpacking libsfcgal1 (1.3.7-4ubuntu3) ...", "Selecting previously unselected package postgresql-14-postgis-3-scripts.", "Preparing to unpack .../61-postgresql-14-postgis-3-scripts_3.3.2+dfsg-1.pgdg20.04+1_all.deb ...", "Unpacking postgresql-14-postgis-3-scripts (3.3.2+dfsg-1.pgdg20.04+1) ...", "Selecting previously unselected package postgresql-14-postgis-3.", "Preparing to unpack .../62-postgresql-14-postgis-3_3.3.2+dfsg-1.pgdg20.04+1_amd64.deb ...", "Unpacking postgresql-14-postgis-3 (3.3.2+dfsg-1.pgdg20.04+1) ...", "Selecting previously unselected package proj-bin.", "Preparing to unpack .../63-proj-bin_6.3.1-1_amd64.deb ...", "Unpacking proj-bin (6.3.1-1) ...", "Setting up liblcms2-2:amd64 (2.9-4) ...", "Setting up mysql-common (5.8+1.0.5ubuntu2) ...", "update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode", "Setting up libmysqlclient21:amd64 (8.0.31-0ubuntu0.20.04.1) ...", "Setting up libxerces-c3.2:amd64 (3.2.2+debian-1build3) ...", "Setting up proj-data (6.3.1-1) ...", "Setting up libgeos-3.8.0:amd64 (3.8.0-1build1) ...", "Setting up libogdi4.1 (4.1.0+ds-1build1) ...", "Setting up libcharls2:amd64 (2.0.0+dfsg-1build1) ...", "Setting up libminizip1:amd64 (1.1-8build1) ...", "Setting up libdap25:amd64 (3.20.5-1) ...", "Setting up libqhull7:amd64 (2015.2-4) ...", "Setting up libepsilon1:amd64 (0.9.2+dfsg-4) ...", "Setting up postgresql-14-postgis-3-scripts (3.3.2+dfsg-1.pgdg20.04+1) ...", "update-alternatives: using /usr/share/postgresql/14/extension/postgis-3.control to provide /usr/share/postgresql/14/extension/postgis.control (postgresql-14-postgis.control) in auto mode", "Setting up libprotobuf-c1:amd64 (1.3.3-1ubuntu0.1) ...", "Setting up libjbig0:amd64 (2.1-3.1ubuntu0.20.04.1) ...", "Setting up libaec0:amd64 (1.0.4-1) ...", "Setting up gdal-data (3.0.4+dfsg-1build3) ...", "Setting up poppler-data (0.4.9-2) ...", "Setting up libblas3:amd64 (3.9.0-1build1) ...", "update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode", "Setting up libcfitsio8:amd64 (3.470-3) ...", "Setting up libgmpxx4ldbl:amd64 (2:6.2.0+dfsg-4ubuntu0.1) ...", "Setting up libnspr4:amd64 (2:4.25-1) ...", "Setting up libpng16-16:amd64 (1.6.37-2) ...", "Setting up libwebp6:amd64 (0.6.1-2ubuntu0.20.04.1) ...", "Setting up libgeos-c1v5:amd64 (3.8.0-1build1) ...", "Setting up fonts-dejavu-core (2.37-1) ...", "Setting up libproj15:amd64 (6.3.1-1) ...", "Setting up libjpeg-turbo8:amd64 (2.0.3-0ubuntu1.20.04.3) ...", "Setting up libltdl7:amd64 (2.4.6-14) ...", "Setting up libgfortran5:amd64 (10.3.0-1ubuntu1~20.04) ...", "Setting up libgif7:amd64 (5.1.9-1) ...", "Setting up liburiparser1:amd64 (0.9.3-2) ...", "Setting up libfreexl1:amd64 (1.0.5-3) ...", "Setting up libfyba0:amd64 (4.1.1-6build1) ...", "Setting up libkmlbase1:amd64 (1.3.0-8build1) ...", "Setting up libdapclient6v5:amd64 (3.20.5-1) ...", "Setting up libopenjp2-7:amd64 (2.3.1-1ubuntu4.20.04.1) ...", "Setting up libboost-serialization1.71.0:amd64 (1.71.0-6ubuntu6) ...", "Setting up libsfcgal1 (1.3.7-4ubuntu3) ...", "Setting up libsz2:amd64 (1.0.4-1) ...", "Setting up libkmldom1:amd64 (1.3.0-8build1) ...", "Setting up libjpeg8:amd64 (8c-2ubuntu8) ...", "Setting up libspatialite7:amd64 (4.3.0a-6build1) ...", "Setting up liblapack3:amd64 (3.9.0-1build1) ...", "update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode", "Setting up libkmlengine1:amd64 (1.3.0-8build1) ...", "Setting up fontconfig-config (2.13.1-2ubuntu3) ...", "Setting up libarpack2:amd64 (3.7.0-3) ...", "Setting up libsuperlu5:amd64 (5.2.1+dfsg1-4) ...", "Setting up proj-bin (6.3.1-1) ...", "Setting up libnss3:amd64 (2:3.49.1-1ubuntu1.8) ...", "Setting up libfreetype6:amd64 (2.10.1-2ubuntu0.2) ...", "Setting up libhdf5-103:amd64 (1.10.4+repack-11ubuntu1) ...", "Setting up libodbc1:amd64 (2.3.6-0.1build1) ...", "Setting up libhdf4-0-alt (4.2.14-1ubuntu1) ...", "Setting up libtiff5:amd64 (4.1.0+git191117-2ubuntu0.20.04.6) ...", "Setting up libarmadillo9 (1:9.800.4+dfsg-1build1) ...", "Setting up libgeotiff5:amd64 (1.5.1-2) ...", "Setting up libnetcdf15:amd64 (1:4.7.3-1) ...", "Setting up odbcinst (2.3.6-0.1build1) ...", "Setting up odbcinst1debian2:amd64 (2.3.6-0.1build1) ...", "Processing triggers for libc-bin (2.31-0ubuntu9.9) ...", "Processing triggers for man-db (2.9.1-1) ...", "Processing triggers for postgresql-common (246.pgdg20.04+1) ...", "Building PostgreSQL dictionaries from installed myspell/hunspell packages...", "Removing obsolete dictionary files:", "Processing triggers for sgml-base (1.29.1) ...", "Setting up libfontconfig1:amd64 (2.13.1-2ubuntu3) ...", "Setting up libpoppler97:amd64 (0.86.1-0ubuntu1.1) ...", "Setting up libgdal26 (3.0.4+dfsg-1build3) ...", "Setting up postgresql-14-postgis-3 (3.3.2+dfsg-1.pgdg20.04+1) ...", "Processing triggers for libc-bin (2.31-0ubuntu9.9) ..."]} + +TASK [postgresql_ext : Create postgis extension] ******************************* +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "postgis", "queries": ["CREATE EXTENSION \"postgis\""]} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : Drop extension] ***************************************** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["DROP EXTENSION \"dummy\""]} + +TASK [postgresql_ext : Non standard version] *********************************** +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["CREATE EXTENSION \"dummy\" WITH SCHEMA \"schema1\" VERSION '0'"]} + +TASK [postgresql_ext : Test] *************************************************** +ok: [testhost] => {"changed": false, "databases": {"postgres": {"access_priv": "", "collate": "C.UTF-8", "ctype": "C.UTF-8", "encoding": "UTF8", "extensions": {"dummy": {"description": "dummy extension used to test postgresql_ext Ansible module", "extversion": {"major": 0, "minor": null, "raw": "0"}, "nspname": "schema1"}, "plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}, "postgis": {"description": "PostGIS geometry and geography spatial types and functions", "extversion": {"major": 3, "minor": 3, "raw": "3.3.2"}, "nspname": "public"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}, "schema1": {"nspacl": "", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "16966435", "subscriptions": {}}, "ssl_db": {"access_priv": "", "collate": "C.UTF-8", "ctype": "C.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8733475", "subscriptions": {}}, "template1": {"access_priv": "=c/postgres\npostgres=CTc/postgres", "collate": "C.UTF-8", "ctype": "C.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8733475", "subscriptions": {}}}, "in_recovery": false, "pending_restart_settings": [], "repl_slots": {}, "replications": {}, "roles": {"postgres": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}, "ssl_user": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}}, "settings": {"DateStyle": {"boot_val": "ISO, MDY", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "ISO, MDY", "setting": "ISO, MDY", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "IntervalStyle": {"boot_val": "postgres", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "enum"}, "TimeZone": {"boot_val": "GMT", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Etc/UTC", "setting": "Etc/UTC", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "allow_in_place_tablespaces": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "allow_system_table_mods": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "application_name": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_cleanup_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "(disabled)", "setting": "(disabled)", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_mode": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "archive_timeout": {"boot_val": "0", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "array_nulls": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "authentication_timeout": {"boot_val": "60", "context": "sighup", "max_val": "600", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "autovacuum_analyze_scale_factor": {"boot_val": "0.1", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_analyze_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_freeze_max_age": {"boot_val": "200000000", "context": "postmaster", "max_val": "2000000000", "min_val": "100000", "pending_restart": false, "pretty_val": "200000000", "setting": "200000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_max_workers": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_multixact_freeze_max_age": {"boot_val": "400000000", "context": "postmaster", "max_val": "2000000000", "min_val": "10000", "pending_restart": false, "pretty_val": "400000000", "setting": "400000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_naptime": {"boot_val": "60", "context": "sighup", "max_val": "2147483", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum_vacuum_cost_delay": {"boot_val": "2", "context": "sighup", "max_val": "100", "min_val": "-1", "pending_restart": false, "pretty_val": "2ms", "setting": "2", "sourcefile": "", "unit": "ms", "vartype": "real"}, "autovacuum_vacuum_cost_limit": {"boot_val": "-1", "context": "sighup", "max_val": "10000", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_insert_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_insert_threshold": {"boot_val": "1000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_work_mem": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "backend_flush_after": {"boot_val": "0", "context": "user", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "8kB", "val_in_bytes": 0, "vartype": "integer"}, "backslash_quote": {"boot_val": "safe_encoding", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "safe_encoding", "setting": "safe_encoding", "sourcefile": "", "unit": "", "vartype": "enum"}, "backtrace_functions": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bgwriter_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "10", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "bgwriter_flush_after": {"boot_val": "64", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "bgwriter_lru_maxpages": {"boot_val": "100", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "bgwriter_lru_multiplier": {"boot_val": "2", "context": "sighup", "max_val": "10", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "bonjour": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "bonjour_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bytea_output": {"boot_val": "hex", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "hex", "setting": "hex", "sourcefile": "", "unit": "", "vartype": "enum"}, "check_function_bodies": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "checkpoint_completion_target": {"boot_val": "0.9", "context": "sighup", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.9", "setting": "0.9", "sourcefile": "", "unit": "", "vartype": "real"}, "checkpoint_flush_after": {"boot_val": "32", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "256kB", "setting": "32", "sourcefile": "", "unit": "8kB", "val_in_bytes": 262144, "vartype": "integer"}, "checkpoint_timeout": {"boot_val": "300", "context": "sighup", "max_val": "86400", "min_val": "30", "pending_restart": false, "pretty_val": "5min", "setting": "300", "sourcefile": "", "unit": "s", "vartype": "integer"}, "checkpoint_warning": {"boot_val": "30", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "30s", "setting": "30", "sourcefile": "", "unit": "s", "vartype": "integer"}, "client_connection_check_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "client_encoding": {"boot_val": "SQL_ASCII", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "client_min_messages": {"boot_val": "notice", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "notice", "setting": "notice", "sourcefile": "", "unit": "", "vartype": "enum"}, "cluster_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "14/main", "setting": "14/main", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "commit_delay": {"boot_val": "0", "context": "superuser", "max_val": "100000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "commit_siblings": {"boot_val": "5", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "compute_query_id": {"boot_val": "auto", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "config_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/14/main/postgresql.conf", "setting": "/etc/postgresql/14/main/postgresql.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "constraint_exclusion": {"boot_val": "partition", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "partition", "setting": "partition", "sourcefile": "", "unit": "", "vartype": "enum"}, "cpu_index_tuple_cost": {"boot_val": "0.005", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.005", "setting": "0.005", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_operator_cost": {"boot_val": "0.0025", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.0025", "setting": "0.0025", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_tuple_cost": {"boot_val": "0.01", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.01", "setting": "0.01", "sourcefile": "", "unit": "", "vartype": "real"}, "cursor_tuple_fraction": {"boot_val": "0.1", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "data_checksums": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "data_directory": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/postgresql/14/main", "setting": "/var/lib/postgresql/14/main", "sourcefile": "", "unit": "", "vartype": "string"}, "data_directory_mode": {"boot_val": "448", "context": "internal", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0700", "setting": "0700", "sourcefile": "", "unit": "", "vartype": "integer"}, "data_sync_retry": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "db_user_namespace": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "deadlock_timeout": {"boot_val": "1000", "context": "superuser", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "1s", "setting": "1000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "debug_assertions": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_discard_caches": {"boot_val": "0", "context": "superuser", "max_val": "0", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "debug_pretty_print": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_parse": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_plan": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_rewritten": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_statistics_target": {"boot_val": "100", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "default_table_access_method": {"boot_val": "heap", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "heap", "setting": "heap", "sourcefile": "", "unit": "", "vartype": "string"}, "default_tablespace": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "default_text_search_config": {"boot_val": "pg_catalog.simple", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pg_catalog.english", "setting": "pg_catalog.english", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "default_toast_compression": {"boot_val": "pglz", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pglz", "setting": "pglz", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "dynamic_library_path": {"boot_val": "$libdir", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "$libdir", "setting": "$libdir", "sourcefile": "", "unit": "", "vartype": "string"}, "dynamic_shared_memory_type": {"boot_val": "posix", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "posix", "setting": "posix", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "enum"}, "effective_cache_size": {"boot_val": "524288", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "4GB", "setting": "524288", "sourcefile": "", "unit": "8kB", "val_in_bytes": 4294967296, "vartype": "integer"}, "effective_io_concurrency": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "enable_async_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_bitmapscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_gathermerge": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashagg": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashjoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_incremental_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexonlyscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_material": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_memoize": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_mergejoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_nestloop": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_hash": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partition_pruning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_aggregate": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_join": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_seqscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_tidscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "escape_string_warning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "event_source": {"boot_val": "PostgreSQL", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "PostgreSQL", "setting": "PostgreSQL", "sourcefile": "", "unit": "", "vartype": "string"}, "exit_on_error": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "extension_destdir": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "external_pid_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql/14-main.pid", "setting": "/var/run/postgresql/14-main.pid", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "extra_float_digits": {"boot_val": "1", "context": "user", "max_val": "3", "min_val": "-15", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "force_parallel_mode": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "from_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "fsync": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "full_page_writes": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo_effort": {"boot_val": "5", "context": "user", "max_val": "10", "min_val": "1", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_generations": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_pool_size": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_seed": {"boot_val": "0", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_selection_bias": {"boot_val": "2", "context": "user", "max_val": "2", "min_val": "1.5", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_threshold": {"boot_val": "12", "context": "user", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "12", "setting": "12", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_fuzzy_search_limit": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_pending_list_limit": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "hash_mem_multiplier": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "1", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "hba_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/14/main/pg_hba.conf", "setting": "/etc/postgresql/14/main/pg_hba.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "hot_standby": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "hot_standby_feedback": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "huge_page_size": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "huge_pages": {"boot_val": "try", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "try", "setting": "try", "sourcefile": "", "unit": "", "vartype": "enum"}, "ident_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/14/main/pg_ident.conf", "setting": "/etc/postgresql/14/main/pg_ident.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "idle_in_transaction_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "idle_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "ignore_checksum_failure": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_invalid_pages": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_system_indexes": {"boot_val": "off", "context": "backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "in_hot_standby": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "integer_datetimes": {"boot_val": "on", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_above_cost": {"boot_val": "100000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "100000", "setting": "100000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_debugging_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_dump_bitcode": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_expressions": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_inline_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_optimize_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_profiling_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_provider": {"boot_val": "llvmjit", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "llvmjit", "setting": "llvmjit", "sourcefile": "", "unit": "", "vartype": "string"}, "jit_tuple_deforming": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "join_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "krb_caseins_users": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "krb_server_keyfile": {"boot_val": "FILE:/etc/postgresql-common/krb5.keytab", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "FILE:/etc/postgresql-common/krb5.keytab", "setting": "FILE:/etc/postgresql-common/krb5.keytab", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_collate": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_ctype": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_messages": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_monetary": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_numeric": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_time": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "listen_addresses": {"boot_val": "localhost", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "localhost", "setting": "localhost", "sourcefile": "", "unit": "", "vartype": "string"}, "lo_compat_privileges": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "local_preload_libraries": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "lock_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_autovacuum_min_duration": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_checkpoints": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_connections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_destination": {"boot_val": "stderr", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "stderr", "setting": "stderr", "sourcefile": "", "unit": "", "vartype": "string"}, "log_directory": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "", "unit": "", "vartype": "string"}, "log_disconnections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_duration": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_error_verbosity": {"boot_val": "default", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "default", "setting": "default", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_executor_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_file_mode": {"boot_val": "384", "context": "sighup", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0600", "setting": "0600", "sourcefile": "", "unit": "", "vartype": "integer"}, "log_filename": {"boot_val": "postgresql-%Y-%m-%d_%H%M%S.log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgresql-%Y-%m-%d_%H%M%S.log", "setting": "postgresql-%Y-%m-%d_%H%M%S.log", "sourcefile": "", "unit": "", "vartype": "string"}, "log_hostname": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_line_prefix": {"boot_val": "%m [%p] ", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "%m [%p] %q%u@%d ", "setting": "%m [%p] %q%u@%d ", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "log_lock_waits": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_min_duration_sample": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_duration_statement": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_error_statement": {"boot_val": "error", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "error", "setting": "error", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_min_messages": {"boot_val": "warning", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "warning", "setting": "warning", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_parameter_max_length": {"boot_val": "-1", "context": "superuser", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parameter_max_length_on_error": {"boot_val": "0", "context": "user", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parser_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_planner_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_recovery_conflict_waits": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_replication_commands": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_rotation_age": {"boot_val": "1440", "context": "sighup", "max_val": "35791394", "min_val": "0", "pending_restart": false, "pretty_val": "1d", "setting": "1440", "sourcefile": "", "unit": "min", "vartype": "integer"}, "log_rotation_size": {"boot_val": "10240", "context": "sighup", "max_val": "2097151", "min_val": "0", "pending_restart": false, "pretty_val": "10MB", "setting": "10240", "sourcefile": "", "unit": "kB", "val_in_bytes": 10485760, "vartype": "integer"}, "log_statement": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_statement_sample_rate": {"boot_val": "1", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "log_statement_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_temp_files": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "log_timezone": {"boot_val": "GMT", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Etc/UTC", "setting": "Etc/UTC", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "log_transaction_sample_rate": {"boot_val": "0", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "log_truncate_on_rotation": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "logging_collector": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "logical_decoding_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "maintenance_io_concurrency": {"boot_val": "10", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "maintenance_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "1024", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "max_connections": {"boot_val": "100", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "integer"}, "max_files_per_process": {"boot_val": "1000", "context": "postmaster", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_function_args": {"boot_val": "100", "context": "internal", "max_val": "100", "min_val": "100", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_identifier_length": {"boot_val": "63", "context": "internal", "max_val": "63", "min_val": "63", "pending_restart": false, "pretty_val": "63", "setting": "63", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_index_keys": {"boot_val": "32", "context": "internal", "max_val": "32", "min_val": "32", "pending_restart": false, "pretty_val": "32", "setting": "32", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_logical_replication_workers": {"boot_val": "4", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_maintenance_workers": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers": {"boot_val": "8", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers_per_gather": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_page": {"boot_val": "2", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_relation": {"boot_val": "-2", "context": "sighup", "max_val": "2147483647", "min_val": "-2147483648", "pending_restart": false, "pretty_val": "-2", "setting": "-2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_prepared_transactions": {"boot_val": "0", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_replication_slots": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_slot_wal_keep_size": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "max_stack_depth": {"boot_val": "100", "context": "superuser", "max_val": "2147483647", "min_val": "100", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "max_standby_archive_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_standby_streaming_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_sync_workers_per_subscription": {"boot_val": "2", "context": "sighup", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_wal_senders": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_wal_size": {"boot_val": "1024", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "1GB", "setting": "1024", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "MB", "val_in_bytes": 1073741824, "vartype": "integer"}, "max_worker_processes": {"boot_val": "8", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "min_dynamic_shared_memory": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "min_parallel_index_scan_size": {"boot_val": "64", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "min_parallel_table_scan_size": {"boot_val": "1024", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "min_wal_size": {"boot_val": "80", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "80MB", "setting": "80", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "MB", "val_in_bytes": 83886080, "vartype": "integer"}, "old_snapshot_threshold": {"boot_val": "-1", "context": "postmaster", "max_val": "86400", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "min", "vartype": "integer"}, "parallel_leader_participation": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "parallel_setup_cost": {"boot_val": "1000", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "real"}, "parallel_tuple_cost": {"boot_val": "0.1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "password_encryption": {"boot_val": "scram-sha-256", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "scram-sha-256", "setting": "scram-sha-256", "sourcefile": "", "unit": "", "vartype": "enum"}, "plan_cache_mode": {"boot_val": "auto", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "port": {"boot_val": "5432", "context": "postmaster", "max_val": "65535", "min_val": "1", "pending_restart": false, "pretty_val": "5432", "setting": "5432", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "integer"}, "post_auth_delay": {"boot_val": "0", "context": "backend", "max_val": "2147", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "pre_auth_delay": {"boot_val": "0", "context": "sighup", "max_val": "60", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "primary_conninfo": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "primary_slot_name": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "promote_trigger_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "quote_all_identifiers": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "random_page_cost": {"boot_val": "4", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "real"}, "recovery_end_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_init_sync_method": {"boot_val": "fsync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fsync", "setting": "fsync", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_min_apply_delay": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "recovery_target": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_action": {"boot_val": "pause", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pause", "setting": "pause", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_target_inclusive": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "recovery_target_lsn": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_time": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_timeline": {"boot_val": "latest", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "latest", "setting": "latest", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_xid": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "remove_temp_files_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restart_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restore_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "row_security": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "search_path": {"boot_val": "\"$user\", public", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "\"$user\", public", "setting": "\"$user\", public", "sourcefile": "", "unit": "", "vartype": "string"}, "segment_size": {"boot_val": "131072", "context": "internal", "max_val": "131072", "min_val": "131072", "pending_restart": false, "pretty_val": "1GB", "setting": "131072", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1073741824, "vartype": "integer"}, "seq_page_cost": {"boot_val": "1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "server_encoding": {"boot_val": "SQL_ASCII", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version": {"boot_val": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "setting": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version_num": {"boot_val": "140006", "context": "internal", "max_val": "140006", "min_val": "140006", "pending_restart": false, "pretty_val": "140006", "setting": "140006", "sourcefile": "", "unit": "", "vartype": "integer"}, "session_preload_libraries": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "session_replication_role": {"boot_val": "origin", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "origin", "setting": "origin", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_buffers": {"boot_val": "1024", "context": "postmaster", "max_val": "1073741823", "min_val": "16", "pending_restart": false, "pretty_val": "128MB", "setting": "16384", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "8kB", "val_in_bytes": 134217728, "vartype": "integer"}, "shared_memory_type": {"boot_val": "mmap", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "mmap", "setting": "mmap", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_preload_libraries": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "bool"}, "ssl_ca_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_cert_file": {"boot_val": "server.crt", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/ssl/certs/ssl-cert-snakeoil.pem", "setting": "/etc/ssl/certs/ssl-cert-snakeoil.pem", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "ssl_ciphers": {"boot_val": "HIGH:MEDIUM:+3DES:!aNULL", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "HIGH:MEDIUM:+3DES:!aNULL", "setting": "HIGH:MEDIUM:+3DES:!aNULL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_dir": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_dh_params_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_ecdh_curve": {"boot_val": "prime256v1", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "prime256v1", "setting": "prime256v1", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_key_file": {"boot_val": "server.key", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/ssl/private/ssl-cert-snakeoil.key", "setting": "/etc/ssl/private/ssl-cert-snakeoil.key", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "ssl_library": {"boot_val": "OpenSSL", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "OpenSSL", "setting": "OpenSSL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_max_protocol_version": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_min_protocol_version": {"boot_val": "TLSv1.2", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "TLSv1.2", "setting": "TLSv1.2", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_passphrase_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_passphrase_command_supports_reload": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ssl_prefer_server_ciphers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "standard_conforming_strings": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "statement_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "stats_temp_directory": {"boot_val": "pg_stat_tmp", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql/14-main.pg_stat_tmp", "setting": "/var/run/postgresql/14-main.pg_stat_tmp", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "superuser_reserved_connections": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "synchronize_seqscans": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "synchronous_commit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "enum"}, "synchronous_standby_names": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_facility": {"boot_val": "local0", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "local0", "setting": "local0", "sourcefile": "", "unit": "", "vartype": "enum"}, "syslog_ident": {"boot_val": "postgres", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_sequence_numbers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "syslog_split_messages": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "tcp_keepalives_count": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "tcp_keepalives_idle": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_keepalives_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_user_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "temp_buffers": {"boot_val": "1024", "context": "user", "max_val": "1073741823", "min_val": "100", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "temp_file_limit": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "temp_tablespaces": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "timezone_abbreviations": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Default", "setting": "Default", "sourcefile": "", "unit": "", "vartype": "string"}, "trace_notify": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "trace_recovery_messages": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "", "unit": "", "vartype": "enum"}, "trace_sort": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activities": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activity_query_size": {"boot_val": "1024", "context": "postmaster", "max_val": "1048576", "min_val": "100", "pending_restart": false, "pretty_val": "1kB", "setting": "1024", "sourcefile": "", "unit": "B", "vartype": "integer"}, "track_commit_timestamp": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_counts": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_functions": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "track_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_wal_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transform_null_equals": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "unix_socket_directories": {"boot_val": "/var/run/postgresql", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql", "setting": "/var/run/postgresql", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "unix_socket_group": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "unix_socket_permissions": {"boot_val": "511", "context": "postmaster", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0777", "setting": "0777", "sourcefile": "", "unit": "", "vartype": "integer"}, "update_process_title": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "vacuum_cost_delay": {"boot_val": "0", "context": "user", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "real"}, "vacuum_cost_limit": {"boot_val": "200", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200", "setting": "200", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_dirty": {"boot_val": "20", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "20", "setting": "20", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_hit": {"boot_val": "1", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_miss": {"boot_val": "2", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_defer_cleanup_age": {"boot_val": "0", "context": "sighup", "max_val": "1000000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_min_age": {"boot_val": "50000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "50000000", "setting": "50000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_min_age": {"boot_val": "5000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "5000000", "setting": "5000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_buffers": {"boot_val": "-1", "context": "postmaster", "max_val": "262143", "min_val": "-1", "pending_restart": false, "pretty_val": "4MB", "setting": "512", "sourcefile": "", "unit": "8kB", "val_in_bytes": 4194304, "vartype": "integer"}, "wal_compression": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_consistency_checking": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "wal_init_zero": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_keep_size": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "wal_level": {"boot_val": "replica", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "replica", "setting": "replica", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_log_hints": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_create_temp_slot": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_status_interval": {"boot_val": "10", "context": "sighup", "max_val": "2147483", "min_val": "0", "pending_restart": false, "pretty_val": "10s", "setting": "10", "sourcefile": "", "unit": "s", "vartype": "integer"}, "wal_receiver_timeout": {"boot_val": "60000", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_recycle": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_retrieve_retry_interval": {"boot_val": "5000", "context": "sighup", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "5s", "setting": "5000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_segment_size": {"boot_val": "16777216", "context": "internal", "max_val": "1073741824", "min_val": "1048576", "pending_restart": false, "pretty_val": "16MB", "setting": "16777216", "sourcefile": "", "unit": "B", "vartype": "integer"}, "wal_sender_timeout": {"boot_val": "60000", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_skip_threshold": {"boot_val": "2048", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "wal_sync_method": {"boot_val": "fdatasync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fdatasync", "setting": "fdatasync", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_writer_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_writer_flush_after": {"boot_val": "128", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1MB", "setting": "128", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1048576, "vartype": "integer"}, "work_mem": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "xmlbinary": {"boot_val": "base64", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "base64", "setting": "base64", "sourcefile": "", "unit": "", "vartype": "enum"}, "xmloption": {"boot_val": "content", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "content", "setting": "content", "sourcefile": "", "unit": "", "vartype": "enum"}, "zero_damaged_pages": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}}, "tablespaces": {"pg_default": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}, "pg_global": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}}, "version": {"full": "14.6", "major": 14, "minor": 6, "raw": "PostgreSQL 14.6 (Ubuntu 14.6-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : Upgrade extension to the latest] ************************ +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["ALTER EXTENSION \"dummy\" UPDATE"]} + +TASK [postgresql_ext : Test] *************************************************** +ok: [testhost] => {"changed": false, "databases": {"postgres": {"access_priv": "", "collate": "C.UTF-8", "ctype": "C.UTF-8", "encoding": "UTF8", "extensions": {"dummy": {"description": "dummy extension used to test postgresql_ext Ansible module", "extversion": {"major": 3, "minor": 0, "raw": "3.0"}, "nspname": "schema1"}, "plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}, "postgis": {"description": "PostGIS geometry and geography spatial types and functions", "extversion": {"major": 3, "minor": 3, "raw": "3.3.2"}, "nspname": "public"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}, "schema1": {"nspacl": "", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "16966435", "subscriptions": {}}, "ssl_db": {"access_priv": "", "collate": "C.UTF-8", "ctype": "C.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8733475", "subscriptions": {}}, "template1": {"access_priv": "=c/postgres\npostgres=CTc/postgres", "collate": "C.UTF-8", "ctype": "C.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8733475", "subscriptions": {}}}, "in_recovery": false, "pending_restart_settings": [], "repl_slots": {}, "replications": {}, "roles": {"postgres": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}, "ssl_user": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}}, "settings": {"DateStyle": {"boot_val": "ISO, MDY", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "ISO, MDY", "setting": "ISO, MDY", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "IntervalStyle": {"boot_val": "postgres", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "enum"}, "TimeZone": {"boot_val": "GMT", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Etc/UTC", "setting": "Etc/UTC", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "allow_in_place_tablespaces": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "allow_system_table_mods": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "application_name": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_cleanup_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "(disabled)", "setting": "(disabled)", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_mode": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "archive_timeout": {"boot_val": "0", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "array_nulls": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "authentication_timeout": {"boot_val": "60", "context": "sighup", "max_val": "600", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "autovacuum_analyze_scale_factor": {"boot_val": "0.1", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_analyze_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_freeze_max_age": {"boot_val": "200000000", "context": "postmaster", "max_val": "2000000000", "min_val": "100000", "pending_restart": false, "pretty_val": "200000000", "setting": "200000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_max_workers": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_multixact_freeze_max_age": {"boot_val": "400000000", "context": "postmaster", "max_val": "2000000000", "min_val": "10000", "pending_restart": false, "pretty_val": "400000000", "setting": "400000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_naptime": {"boot_val": "60", "context": "sighup", "max_val": "2147483", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum_vacuum_cost_delay": {"boot_val": "2", "context": "sighup", "max_val": "100", "min_val": "-1", "pending_restart": false, "pretty_val": "2ms", "setting": "2", "sourcefile": "", "unit": "ms", "vartype": "real"}, "autovacuum_vacuum_cost_limit": {"boot_val": "-1", "context": "sighup", "max_val": "10000", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_insert_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_insert_threshold": {"boot_val": "1000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_work_mem": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "backend_flush_after": {"boot_val": "0", "context": "user", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "8kB", "val_in_bytes": 0, "vartype": "integer"}, "backslash_quote": {"boot_val": "safe_encoding", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "safe_encoding", "setting": "safe_encoding", "sourcefile": "", "unit": "", "vartype": "enum"}, "backtrace_functions": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bgwriter_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "10", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "bgwriter_flush_after": {"boot_val": "64", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "bgwriter_lru_maxpages": {"boot_val": "100", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "bgwriter_lru_multiplier": {"boot_val": "2", "context": "sighup", "max_val": "10", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "bonjour": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "bonjour_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bytea_output": {"boot_val": "hex", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "hex", "setting": "hex", "sourcefile": "", "unit": "", "vartype": "enum"}, "check_function_bodies": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "checkpoint_completion_target": {"boot_val": "0.9", "context": "sighup", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.9", "setting": "0.9", "sourcefile": "", "unit": "", "vartype": "real"}, "checkpoint_flush_after": {"boot_val": "32", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "256kB", "setting": "32", "sourcefile": "", "unit": "8kB", "val_in_bytes": 262144, "vartype": "integer"}, "checkpoint_timeout": {"boot_val": "300", "context": "sighup", "max_val": "86400", "min_val": "30", "pending_restart": false, "pretty_val": "5min", "setting": "300", "sourcefile": "", "unit": "s", "vartype": "integer"}, "checkpoint_warning": {"boot_val": "30", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "30s", "setting": "30", "sourcefile": "", "unit": "s", "vartype": "integer"}, "client_connection_check_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "client_encoding": {"boot_val": "SQL_ASCII", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "client_min_messages": {"boot_val": "notice", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "notice", "setting": "notice", "sourcefile": "", "unit": "", "vartype": "enum"}, "cluster_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "14/main", "setting": "14/main", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "commit_delay": {"boot_val": "0", "context": "superuser", "max_val": "100000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "commit_siblings": {"boot_val": "5", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "compute_query_id": {"boot_val": "auto", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "config_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/14/main/postgresql.conf", "setting": "/etc/postgresql/14/main/postgresql.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "constraint_exclusion": {"boot_val": "partition", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "partition", "setting": "partition", "sourcefile": "", "unit": "", "vartype": "enum"}, "cpu_index_tuple_cost": {"boot_val": "0.005", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.005", "setting": "0.005", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_operator_cost": {"boot_val": "0.0025", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.0025", "setting": "0.0025", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_tuple_cost": {"boot_val": "0.01", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.01", "setting": "0.01", "sourcefile": "", "unit": "", "vartype": "real"}, "cursor_tuple_fraction": {"boot_val": "0.1", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "data_checksums": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "data_directory": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/postgresql/14/main", "setting": "/var/lib/postgresql/14/main", "sourcefile": "", "unit": "", "vartype": "string"}, "data_directory_mode": {"boot_val": "448", "context": "internal", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0700", "setting": "0700", "sourcefile": "", "unit": "", "vartype": "integer"}, "data_sync_retry": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "db_user_namespace": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "deadlock_timeout": {"boot_val": "1000", "context": "superuser", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "1s", "setting": "1000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "debug_assertions": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_discard_caches": {"boot_val": "0", "context": "superuser", "max_val": "0", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "debug_pretty_print": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_parse": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_plan": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_rewritten": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_statistics_target": {"boot_val": "100", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "default_table_access_method": {"boot_val": "heap", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "heap", "setting": "heap", "sourcefile": "", "unit": "", "vartype": "string"}, "default_tablespace": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "default_text_search_config": {"boot_val": "pg_catalog.simple", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pg_catalog.english", "setting": "pg_catalog.english", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "default_toast_compression": {"boot_val": "pglz", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pglz", "setting": "pglz", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "dynamic_library_path": {"boot_val": "$libdir", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "$libdir", "setting": "$libdir", "sourcefile": "", "unit": "", "vartype": "string"}, "dynamic_shared_memory_type": {"boot_val": "posix", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "posix", "setting": "posix", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "enum"}, "effective_cache_size": {"boot_val": "524288", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "4GB", "setting": "524288", "sourcefile": "", "unit": "8kB", "val_in_bytes": 4294967296, "vartype": "integer"}, "effective_io_concurrency": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "enable_async_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_bitmapscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_gathermerge": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashagg": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashjoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_incremental_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexonlyscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_material": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_memoize": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_mergejoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_nestloop": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_hash": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partition_pruning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_aggregate": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_join": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_seqscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_tidscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "escape_string_warning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "event_source": {"boot_val": "PostgreSQL", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "PostgreSQL", "setting": "PostgreSQL", "sourcefile": "", "unit": "", "vartype": "string"}, "exit_on_error": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "extension_destdir": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "external_pid_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql/14-main.pid", "setting": "/var/run/postgresql/14-main.pid", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "extra_float_digits": {"boot_val": "1", "context": "user", "max_val": "3", "min_val": "-15", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "force_parallel_mode": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "from_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "fsync": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "full_page_writes": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo_effort": {"boot_val": "5", "context": "user", "max_val": "10", "min_val": "1", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_generations": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_pool_size": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_seed": {"boot_val": "0", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_selection_bias": {"boot_val": "2", "context": "user", "max_val": "2", "min_val": "1.5", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_threshold": {"boot_val": "12", "context": "user", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "12", "setting": "12", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_fuzzy_search_limit": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_pending_list_limit": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "hash_mem_multiplier": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "1", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "hba_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/14/main/pg_hba.conf", "setting": "/etc/postgresql/14/main/pg_hba.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "hot_standby": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "hot_standby_feedback": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "huge_page_size": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "huge_pages": {"boot_val": "try", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "try", "setting": "try", "sourcefile": "", "unit": "", "vartype": "enum"}, "ident_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/14/main/pg_ident.conf", "setting": "/etc/postgresql/14/main/pg_ident.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "idle_in_transaction_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "idle_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "ignore_checksum_failure": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_invalid_pages": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_system_indexes": {"boot_val": "off", "context": "backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "in_hot_standby": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "integer_datetimes": {"boot_val": "on", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_above_cost": {"boot_val": "100000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "100000", "setting": "100000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_debugging_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_dump_bitcode": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_expressions": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_inline_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_optimize_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_profiling_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_provider": {"boot_val": "llvmjit", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "llvmjit", "setting": "llvmjit", "sourcefile": "", "unit": "", "vartype": "string"}, "jit_tuple_deforming": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "join_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "krb_caseins_users": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "krb_server_keyfile": {"boot_val": "FILE:/etc/postgresql-common/krb5.keytab", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "FILE:/etc/postgresql-common/krb5.keytab", "setting": "FILE:/etc/postgresql-common/krb5.keytab", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_collate": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_ctype": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_messages": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_monetary": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_numeric": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_time": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "listen_addresses": {"boot_val": "localhost", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "localhost", "setting": "localhost", "sourcefile": "", "unit": "", "vartype": "string"}, "lo_compat_privileges": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "local_preload_libraries": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "lock_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_autovacuum_min_duration": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_checkpoints": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_connections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_destination": {"boot_val": "stderr", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "stderr", "setting": "stderr", "sourcefile": "", "unit": "", "vartype": "string"}, "log_directory": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "", "unit": "", "vartype": "string"}, "log_disconnections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_duration": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_error_verbosity": {"boot_val": "default", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "default", "setting": "default", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_executor_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_file_mode": {"boot_val": "384", "context": "sighup", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0600", "setting": "0600", "sourcefile": "", "unit": "", "vartype": "integer"}, "log_filename": {"boot_val": "postgresql-%Y-%m-%d_%H%M%S.log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgresql-%Y-%m-%d_%H%M%S.log", "setting": "postgresql-%Y-%m-%d_%H%M%S.log", "sourcefile": "", "unit": "", "vartype": "string"}, "log_hostname": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_line_prefix": {"boot_val": "%m [%p] ", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "%m [%p] %q%u@%d ", "setting": "%m [%p] %q%u@%d ", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "log_lock_waits": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_min_duration_sample": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_duration_statement": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_error_statement": {"boot_val": "error", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "error", "setting": "error", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_min_messages": {"boot_val": "warning", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "warning", "setting": "warning", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_parameter_max_length": {"boot_val": "-1", "context": "superuser", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parameter_max_length_on_error": {"boot_val": "0", "context": "user", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parser_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_planner_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_recovery_conflict_waits": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_replication_commands": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_rotation_age": {"boot_val": "1440", "context": "sighup", "max_val": "35791394", "min_val": "0", "pending_restart": false, "pretty_val": "1d", "setting": "1440", "sourcefile": "", "unit": "min", "vartype": "integer"}, "log_rotation_size": {"boot_val": "10240", "context": "sighup", "max_val": "2097151", "min_val": "0", "pending_restart": false, "pretty_val": "10MB", "setting": "10240", "sourcefile": "", "unit": "kB", "val_in_bytes": 10485760, "vartype": "integer"}, "log_statement": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_statement_sample_rate": {"boot_val": "1", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "log_statement_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_temp_files": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "log_timezone": {"boot_val": "GMT", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Etc/UTC", "setting": "Etc/UTC", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "log_transaction_sample_rate": {"boot_val": "0", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "log_truncate_on_rotation": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "logging_collector": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "logical_decoding_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "maintenance_io_concurrency": {"boot_val": "10", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "maintenance_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "1024", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "max_connections": {"boot_val": "100", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "integer"}, "max_files_per_process": {"boot_val": "1000", "context": "postmaster", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_function_args": {"boot_val": "100", "context": "internal", "max_val": "100", "min_val": "100", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_identifier_length": {"boot_val": "63", "context": "internal", "max_val": "63", "min_val": "63", "pending_restart": false, "pretty_val": "63", "setting": "63", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_index_keys": {"boot_val": "32", "context": "internal", "max_val": "32", "min_val": "32", "pending_restart": false, "pretty_val": "32", "setting": "32", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_logical_replication_workers": {"boot_val": "4", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_maintenance_workers": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers": {"boot_val": "8", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers_per_gather": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_page": {"boot_val": "2", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_relation": {"boot_val": "-2", "context": "sighup", "max_val": "2147483647", "min_val": "-2147483648", "pending_restart": false, "pretty_val": "-2", "setting": "-2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_prepared_transactions": {"boot_val": "0", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_replication_slots": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_slot_wal_keep_size": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "max_stack_depth": {"boot_val": "100", "context": "superuser", "max_val": "2147483647", "min_val": "100", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "max_standby_archive_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_standby_streaming_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_sync_workers_per_subscription": {"boot_val": "2", "context": "sighup", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_wal_senders": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_wal_size": {"boot_val": "1024", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "1GB", "setting": "1024", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "MB", "val_in_bytes": 1073741824, "vartype": "integer"}, "max_worker_processes": {"boot_val": "8", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "min_dynamic_shared_memory": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "min_parallel_index_scan_size": {"boot_val": "64", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "min_parallel_table_scan_size": {"boot_val": "1024", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "min_wal_size": {"boot_val": "80", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "80MB", "setting": "80", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "MB", "val_in_bytes": 83886080, "vartype": "integer"}, "old_snapshot_threshold": {"boot_val": "-1", "context": "postmaster", "max_val": "86400", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "min", "vartype": "integer"}, "parallel_leader_participation": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "parallel_setup_cost": {"boot_val": "1000", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "real"}, "parallel_tuple_cost": {"boot_val": "0.1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "password_encryption": {"boot_val": "scram-sha-256", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "scram-sha-256", "setting": "scram-sha-256", "sourcefile": "", "unit": "", "vartype": "enum"}, "plan_cache_mode": {"boot_val": "auto", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "port": {"boot_val": "5432", "context": "postmaster", "max_val": "65535", "min_val": "1", "pending_restart": false, "pretty_val": "5432", "setting": "5432", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "integer"}, "post_auth_delay": {"boot_val": "0", "context": "backend", "max_val": "2147", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "pre_auth_delay": {"boot_val": "0", "context": "sighup", "max_val": "60", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "primary_conninfo": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "primary_slot_name": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "promote_trigger_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "quote_all_identifiers": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "random_page_cost": {"boot_val": "4", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "real"}, "recovery_end_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_init_sync_method": {"boot_val": "fsync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fsync", "setting": "fsync", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_min_apply_delay": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "recovery_target": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_action": {"boot_val": "pause", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pause", "setting": "pause", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_target_inclusive": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "recovery_target_lsn": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_time": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_timeline": {"boot_val": "latest", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "latest", "setting": "latest", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_xid": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "remove_temp_files_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restart_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restore_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "row_security": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "search_path": {"boot_val": "\"$user\", public", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "\"$user\", public", "setting": "\"$user\", public", "sourcefile": "", "unit": "", "vartype": "string"}, "segment_size": {"boot_val": "131072", "context": "internal", "max_val": "131072", "min_val": "131072", "pending_restart": false, "pretty_val": "1GB", "setting": "131072", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1073741824, "vartype": "integer"}, "seq_page_cost": {"boot_val": "1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "server_encoding": {"boot_val": "SQL_ASCII", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version": {"boot_val": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "setting": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version_num": {"boot_val": "140006", "context": "internal", "max_val": "140006", "min_val": "140006", "pending_restart": false, "pretty_val": "140006", "setting": "140006", "sourcefile": "", "unit": "", "vartype": "integer"}, "session_preload_libraries": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "session_replication_role": {"boot_val": "origin", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "origin", "setting": "origin", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_buffers": {"boot_val": "1024", "context": "postmaster", "max_val": "1073741823", "min_val": "16", "pending_restart": false, "pretty_val": "128MB", "setting": "16384", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "8kB", "val_in_bytes": 134217728, "vartype": "integer"}, "shared_memory_type": {"boot_val": "mmap", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "mmap", "setting": "mmap", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_preload_libraries": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "bool"}, "ssl_ca_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_cert_file": {"boot_val": "server.crt", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/ssl/certs/ssl-cert-snakeoil.pem", "setting": "/etc/ssl/certs/ssl-cert-snakeoil.pem", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "ssl_ciphers": {"boot_val": "HIGH:MEDIUM:+3DES:!aNULL", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "HIGH:MEDIUM:+3DES:!aNULL", "setting": "HIGH:MEDIUM:+3DES:!aNULL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_dir": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_dh_params_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_ecdh_curve": {"boot_val": "prime256v1", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "prime256v1", "setting": "prime256v1", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_key_file": {"boot_val": "server.key", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/ssl/private/ssl-cert-snakeoil.key", "setting": "/etc/ssl/private/ssl-cert-snakeoil.key", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "ssl_library": {"boot_val": "OpenSSL", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "OpenSSL", "setting": "OpenSSL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_max_protocol_version": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_min_protocol_version": {"boot_val": "TLSv1.2", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "TLSv1.2", "setting": "TLSv1.2", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_passphrase_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_passphrase_command_supports_reload": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ssl_prefer_server_ciphers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "standard_conforming_strings": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "statement_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "stats_temp_directory": {"boot_val": "pg_stat_tmp", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql/14-main.pg_stat_tmp", "setting": "/var/run/postgresql/14-main.pg_stat_tmp", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "superuser_reserved_connections": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "synchronize_seqscans": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "synchronous_commit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "enum"}, "synchronous_standby_names": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_facility": {"boot_val": "local0", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "local0", "setting": "local0", "sourcefile": "", "unit": "", "vartype": "enum"}, "syslog_ident": {"boot_val": "postgres", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_sequence_numbers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "syslog_split_messages": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "tcp_keepalives_count": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "tcp_keepalives_idle": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_keepalives_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_user_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "temp_buffers": {"boot_val": "1024", "context": "user", "max_val": "1073741823", "min_val": "100", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "temp_file_limit": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "temp_tablespaces": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "timezone_abbreviations": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Default", "setting": "Default", "sourcefile": "", "unit": "", "vartype": "string"}, "trace_notify": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "trace_recovery_messages": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "", "unit": "", "vartype": "enum"}, "trace_sort": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activities": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activity_query_size": {"boot_val": "1024", "context": "postmaster", "max_val": "1048576", "min_val": "100", "pending_restart": false, "pretty_val": "1kB", "setting": "1024", "sourcefile": "", "unit": "B", "vartype": "integer"}, "track_commit_timestamp": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_counts": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_functions": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "track_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_wal_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transform_null_equals": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "unix_socket_directories": {"boot_val": "/var/run/postgresql", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql", "setting": "/var/run/postgresql", "sourcefile": "/etc/postgresql/14/main/postgresql.conf", "unit": "", "vartype": "string"}, "unix_socket_group": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "unix_socket_permissions": {"boot_val": "511", "context": "postmaster", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0777", "setting": "0777", "sourcefile": "", "unit": "", "vartype": "integer"}, "update_process_title": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "vacuum_cost_delay": {"boot_val": "0", "context": "user", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "real"}, "vacuum_cost_limit": {"boot_val": "200", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200", "setting": "200", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_dirty": {"boot_val": "20", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "20", "setting": "20", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_hit": {"boot_val": "1", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_miss": {"boot_val": "2", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_defer_cleanup_age": {"boot_val": "0", "context": "sighup", "max_val": "1000000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_min_age": {"boot_val": "50000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "50000000", "setting": "50000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_min_age": {"boot_val": "5000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "5000000", "setting": "5000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_buffers": {"boot_val": "-1", "context": "postmaster", "max_val": "262143", "min_val": "-1", "pending_restart": false, "pretty_val": "4MB", "setting": "512", "sourcefile": "", "unit": "8kB", "val_in_bytes": 4194304, "vartype": "integer"}, "wal_compression": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_consistency_checking": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "wal_init_zero": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_keep_size": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "wal_level": {"boot_val": "replica", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "replica", "setting": "replica", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_log_hints": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_create_temp_slot": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_status_interval": {"boot_val": "10", "context": "sighup", "max_val": "2147483", "min_val": "0", "pending_restart": false, "pretty_val": "10s", "setting": "10", "sourcefile": "", "unit": "s", "vartype": "integer"}, "wal_receiver_timeout": {"boot_val": "60000", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_recycle": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_retrieve_retry_interval": {"boot_val": "5000", "context": "sighup", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "5s", "setting": "5000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_segment_size": {"boot_val": "16777216", "context": "internal", "max_val": "1073741824", "min_val": "1048576", "pending_restart": false, "pretty_val": "16MB", "setting": "16777216", "sourcefile": "", "unit": "B", "vartype": "integer"}, "wal_sender_timeout": {"boot_val": "60000", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_skip_threshold": {"boot_val": "2048", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "wal_sync_method": {"boot_val": "fdatasync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fdatasync", "setting": "fdatasync", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_writer_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_writer_flush_after": {"boot_val": "128", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1MB", "setting": "128", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1048576, "vartype": "integer"}, "work_mem": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "xmlbinary": {"boot_val": "base64", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "base64", "setting": "base64", "sourcefile": "", "unit": "", "vartype": "enum"}, "xmloption": {"boot_val": "content", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "content", "setting": "content", "sourcefile": "", "unit": "", "vartype": "enum"}, "zero_damaged_pages": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}}, "tablespaces": {"pg_default": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}, "pg_global": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}}, "version": {"full": "14.6", "major": 14, "minor": 6, "raw": "PostgreSQL 14.6 (Ubuntu 14.6-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [postgresql_ext : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_ext : postgresql_ext_version - drop the extension] ************ +changed: [testhost] => {"changed": true, "db": "postgres", "ext": "dummy", "queries": ["DROP EXTENSION \"dummy\""]} + +TASK [postgresql_ext : postgresql_ext_version - drop the schema] *************** +changed: [testhost] => {"changed": true, "queries": ["DROP SCHEMA \"schema1\""], "schema": "schema1"} + +PLAY RECAP ********************************************************************* +testhost : ok=112 changed=46 unreachable=0 failed=0 skipped=47 rescued=0 ignored=3 + +Configuring target inventory. +Running postgresql_idx integration test role +Stream command: ansible-playbook postgresql_idx-visxhunn.yml -i inventory -v +[WARNING]: running playbook inside collection community.postgresql +Using /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_idx-kpinnmfw-ÅÑŚÌβŁÈ/tests/integration/integration.cfg as config file + +PLAY [testhost] **************************************************************** + +TASK [Gathering Facts] ********************************************************* +ok: [testhost] + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 2] ****************************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 3] ****************************************** +ok: [testhost] => {"ansible_facts": {"python_suffix": "-py3"}, "changed": false} + +TASK [setup_postgresql_db : Include distribution and Python version specific variables] *** +ok: [testhost] => {"ansible_facts": {"pg_auto_conf": "{{ pg_dir }}/postgresql.auto.conf", "pg_dir": "/var/lib/postgresql/14/main", "pg_hba_location": "/etc/postgresql/14/main/pg_hba.conf", "pg_ver": 14, "postgis": "postgresql-14-postgis-3", "postgresql_packages": ["apt-utils", "postgresql-14", "postgresql-common", "python3-psycopg2"]}, "ansible_included_var_files": ["/root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_idx-kpinnmfw-ÅÑŚÌβŁÈ/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-20-py3.yml"], "changed": false} + +TASK [setup_postgresql_db : Make sure the dbus service is enabled under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Make sure the dbus service is started under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : stop postgresql service] *************************** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "stopped", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ActiveEnterTimestampMonotonic": "3637985233", "ActiveExitTimestamp": "Tue 2022-11-29 10:05:18 UTC", "ActiveExitTimestampMonotonic": "3622757158", "ActiveState": "active", "After": "systemd-journald.socket basic.target sysinit.target postgresql@14-main.service system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:05:33 UTC", "AssertTimestampMonotonic": "3637978032", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ConditionTimestampMonotonic": "3637978031", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ExecMainExitTimestampMonotonic": "3637984061", "ExecMainPID": "7769", "ExecMainStartTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ExecMainStartTimestampMonotonic": "3637980528", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:05:50 UTC] ; stop_time=[Tue 2022-11-29 10:05:50 UTC] ; pid=7966 ; code=exited ; status=0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:05:50 UTC] ; stop_time=[Tue 2022-11-29 10:05:50 UTC] ; pid=7966 ; code=exited ; status=0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:05:33 UTC] ; stop_time=[Tue 2022-11-29 10:05:33 UTC] ; pid=7769 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:05:33 UTC] ; stop_time=[Tue 2022-11-29 10:05:33 UTC] ; pid=7769 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:05:18 UTC", "InactiveEnterTimestampMonotonic": "3622757158", "InactiveExitTimestamp": "Tue 2022-11-29 10:05:33 UTC", "InactiveExitTimestampMonotonic": "3637981027", "InvocationID": "69c9ad086fc448dab4d37ffb568b97ce", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:05:50 UTC", "StateChangeTimestampMonotonic": "3654897191", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : remove old db (RedHat)] **************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : remove old db config and files (debian)] *********** +changed: [testhost] => (item=/etc/postgresql) => {"ansible_loop_var": "loop_item", "changed": true, "loop_item": "/etc/postgresql", "path": "/etc/postgresql", "state": "absent"} +changed: [testhost] => (item=/var/lib/postgresql) => {"ansible_loop_var": "loop_item", "changed": true, "loop_item": "/var/lib/postgresql", "path": "/var/lib/postgresql", "state": "absent"} + +TASK [setup_postgresql_db : Install wget] ************************************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "echo \"deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" > /etc/apt/sources.list.d/pgdg.list", "delta": "0:00:00.029758", "end": "2022-11-29 10:06:24.228170", "msg": "", "rc": 0, "start": "2022-11-29 10:06:24.198412", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -", "delta": "0:00:00.352020", "end": "2022-11-29 10:06:24.728298", "msg": "", "rc": 0, "start": "2022-11-29 10:06:24.376278", "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)"], "stdout": "OK", "stdout_lines": ["OK"]} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "apt -y update", "delta": "0:00:01.836434", "end": "2022-11-29 10:06:26.715043", "msg": "", "rc": 0, "start": "2022-11-29 10:06:24.878609", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Hit:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease\nHit:2 http://security.ubuntu.com/ubuntu focal-security InRelease\nHit:3 http://archive.ubuntu.com/ubuntu focal InRelease\nHit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease\nReading package lists...\nBuilding dependency tree...\nReading state information...\n36 packages can be upgraded. Run 'apt list --upgradable' to see them.", "stdout_lines": ["Hit:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease", "Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease", "Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease", "Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease", "Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease", "Reading package lists...", "Building dependency tree...", "Reading state information...", "36 packages can be upgraded. Run 'apt list --upgradable' to see them."]} + +TASK [setup_postgresql_db : Install locale needed] ***************************** +changed: [testhost] => (item=es_ES) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen es_ES", "delta": "0:00:00.394511", "end": "2022-11-29 10:06:27.266006", "item": "es_ES", "msg": "", "rc": 0, "start": "2022-11-29 10:06:26.871495", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n es_ES.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " es_ES.ISO-8859-1... done", "Generation complete."]} +changed: [testhost] => (item=pt_BR) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen pt_BR", "delta": "0:00:00.402947", "end": "2022-11-29 10:06:27.809763", "item": "pt_BR", "msg": "", "rc": 0, "start": "2022-11-29 10:06:27.406816", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n pt_BR.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " pt_BR.ISO-8859-1... done", "Generation complete."]} + +TASK [setup_postgresql_db : Update locale] ************************************* +changed: [testhost] => {"changed": true, "cmd": "update-locale", "delta": "0:00:00.015753", "end": "2022-11-29 10:06:27.976252", "msg": "", "rc": 0, "start": "2022-11-29 10:06:27.960499", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : install dependencies for postgresql test] ********** +ok: [testhost] => (item=apt-utils) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "apt-utils"} +ok: [testhost] => (item=postgresql-14) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "postgresql-14"} +ok: [testhost] => (item=postgresql-common) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "postgresql-common"} +ok: [testhost] => (item=python3-psycopg2) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "python3-psycopg2"} + +TASK [setup_postgresql_db : Initialize postgres (RedHat systemd)] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (RedHat sysv)] ***************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (Debian)] ********************** +changed: [testhost] => {"changed": true, "cmd": ". /usr/share/postgresql-common/maintscripts-functions && set_system_locale && /usr/bin/pg_createcluster -u postgres 14 main", "delta": "0:00:03.290110", "end": "2022-11-29 10:06:34.635638", "msg": "", "rc": 0, "start": "2022-11-29 10:06:31.345528", "stderr": "", "stderr_lines": [], "stdout": "Creating new PostgreSQL cluster 14/main ...\n/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions\nThe files belonging to this database system will be owned by user \"postgres\".\nThis user must also own the server process.\n\nThe database cluster will be initialized with locale \"C.UTF-8\".\nThe default database encoding has accordingly been set to \"UTF8\".\nThe default text search configuration will be set to \"english\".\n\nData page checksums are disabled.\n\nfixing permissions on existing directory /var/lib/postgresql/14/main ... ok\ncreating subdirectories ... ok\nselecting dynamic shared memory implementation ... posix\nselecting default max_connections ... 100\nselecting default shared_buffers ... 128MB\nselecting default time zone ... Etc/UTC\ncreating configuration files ... ok\nrunning bootstrap script ... ok\nperforming post-bootstrap initialization ... ok\nsyncing data to disk ... ok\nVer Cluster Port Status Owner Data directory Log file\n14 main 5432 down postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log", "stdout_lines": ["Creating new PostgreSQL cluster 14/main ...", "/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions", "The files belonging to this database system will be owned by user \"postgres\".", "This user must also own the server process.", "", "The database cluster will be initialized with locale \"C.UTF-8\".", "The default database encoding has accordingly been set to \"UTF8\".", "The default text search configuration will be set to \"english\".", "", "Data page checksums are disabled.", "", "fixing permissions on existing directory /var/lib/postgresql/14/main ... ok", "creating subdirectories ... ok", "selecting dynamic shared memory implementation ... posix", "selecting default max_connections ... 100", "selecting default shared_buffers ... 128MB", "selecting default time zone ... Etc/UTC", "creating configuration files ... ok", "running bootstrap script ... ok", "performing post-bootstrap initialization ... ok", "syncing data to disk ... ok", "Ver Cluster Port Status Owner Data directory Log file", "14 main 5432 down postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log"]} + +TASK [setup_postgresql_db : Copy pg_hba into place] **************************** +changed: [testhost] => {"changed": true, "checksum": "ee5e714afec7113d11e2aca167bd08ba0eb2bd32", "dest": "/etc/postgresql/14/main/pg_hba.conf", "gid": 0, "group": "root", "md5sum": "ac04fb305309e15b41c01dd5d3d6ca6d", "mode": "0644", "owner": "postgres", "size": 470, "src": "/root/.ansible/tmp/ansible-tmp-1669716394.6738377-2441-162853195255751/source", "state": "file", "uid": 105} + +TASK [setup_postgresql_db : Install langpacks (RHEL8)] ************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Check if locales need to be generated (RedHat)] **** +skipping: [testhost] => (item=es_ES) => {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=pt_BR) => {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Reinstall internationalization files] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Generate locale (RedHat)] ************************** +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'es_ES', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'pt_BR', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Install glibc langpacks (Fedora >= 24)] ************ +skipping: [testhost] => (item=glibc-langpack-es) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-es", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=glibc-langpack-pt) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-pt", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : start postgresql service] ************************** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ActiveEnterTimestampMonotonic": "3637985233", "ActiveExitTimestamp": "Tue 2022-11-29 10:06:22 UTC", "ActiveExitTimestampMonotonic": "3686678447", "ActiveState": "inactive", "After": "system.slice postgresql@14-main.service sysinit.target systemd-journald.socket basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:05:33 UTC", "AssertTimestampMonotonic": "3637978032", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ConditionTimestampMonotonic": "3637978031", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ExecMainExitTimestampMonotonic": "3637984061", "ExecMainPID": "7769", "ExecMainStartTimestamp": "Tue 2022-11-29 10:05:33 UTC", "ExecMainStartTimestampMonotonic": "3637980528", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:06:22 UTC", "InactiveEnterTimestampMonotonic": "3686678447", "InactiveExitTimestamp": "Tue 2022-11-29 10:05:33 UTC", "InactiveExitTimestampMonotonic": "3637981027", "InvocationID": "69c9ad086fc448dab4d37ffb568b97ce", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:06:22 UTC", "StateChangeTimestampMonotonic": "3686678447", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : Pause between start and stop] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:06:37.842300", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:06:42.842551", "user_input": ""} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Stop postgresql service] *************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Pause between stop and start] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:06:42.948169", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:06:47.948429", "user_input": ""} + +TASK [setup_postgresql_db : Start postgresql service] ************************** +ok: [testhost] => {"changed": false, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ActiveEnterTimestampMonotonic": "3701909638", "ActiveExitTimestamp": "Tue 2022-11-29 10:06:22 UTC", "ActiveExitTimestampMonotonic": "3686678447", "ActiveState": "active", "After": "system.slice postgresql@14-main.service sysinit.target systemd-journald.socket basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:06:37 UTC", "AssertTimestampMonotonic": "3701907098", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ConditionTimestampMonotonic": "3701907097", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ExecMainExitTimestampMonotonic": "3701909216", "ExecMainPID": "9703", "ExecMainStartTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ExecMainStartTimestampMonotonic": "3701907835", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:06:37 UTC] ; stop_time=[Tue 2022-11-29 10:06:37 UTC] ; pid=9703 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:06:37 UTC] ; stop_time=[Tue 2022-11-29 10:06:37 UTC] ; pid=9703 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:06:22 UTC", "InactiveEnterTimestampMonotonic": "3686678447", "InactiveExitTimestamp": "Tue 2022-11-29 10:06:37 UTC", "InactiveExitTimestampMonotonic": "3701907970", "InvocationID": "e57ccdf8adf542b2accb947bc9626580", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:06:37 UTC", "StateChangeTimestampMonotonic": "3701909638", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : copy control file for dummy ext] ******************* +ok: [testhost] => {"changed": false, "checksum": "de37beb34a4765b0b07dc249c7866f1e0e7351fa", "dest": "/usr/share/postgresql/14/extension/dummy.control", "gid": 0, "group": "root", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy.control", "size": 114, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : copy version files for dummy ext] ****************** +ok: [testhost] => (item=dummy--0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "8f073962a56e90e49c0d8f7985497cd1b51506e2", "dest": "/usr/share/postgresql/14/extension/dummy--0.sql", "gid": 0, "group": "root", "item": "dummy--0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--0.sql", "size": 108, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--1.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "a2b62264e8d532f9217b439b11c8c366dea14dc6", "dest": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "size": 110, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--2.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "f6839f9b1988bb8b594b50b4f85c7a52fc770d9d", "dest": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "size": 110, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--3.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "a5875ba65c676f96c2f3527a2ef0c495e77a9a72", "dest": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "gid": 0, "group": "root", "item": "dummy--3.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "size": 110, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : add update paths] ********************************** +changed: [testhost] => (item=dummy--0--1.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--0--1.0.sql", "gid": 0, "group": "root", "item": "dummy--0--1.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--1.0--2.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--1.0--2.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0--2.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--2.0--3.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--2.0--3.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0--3.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : Get PostgreSQL version] **************************** +[WARNING]: Unable to use /var/lib/postgresql/.ansible/tmp as temporary +directory, failing back to system: [Errno 13] Permission denied: +'/var/lib/postgresql/.ansible' +changed: [testhost] => {"changed": true, "cmd": "echo 'SHOW SERVER_VERSION' | psql --tuples-only --no-align --dbname postgres", "delta": "0:00:00.034730", "end": "2022-11-29 10:06:50.429843", "msg": "", "rc": 0, "start": "2022-11-29 10:06:50.395113", "stderr": "", "stderr_lines": [], "stdout": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "stdout_lines": ["14.6 (Ubuntu 14.6-1.pgdg20.04+1)"]} + +TASK [setup_postgresql_db : Print PostgreSQL server version] ******************* +ok: [testhost] => { + "msg": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)" +} + +TASK [setup_postgresql_db : postgresql SSL - create database] ****************** +changed: [testhost] => {"changed": true, "db": "ssl_db", "executed_commands": ["CREATE DATABASE \"ssl_db\""]} + +TASK [setup_postgresql_db : postgresql SSL - create role] ********************** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"ssl_user\" WITH ENCRYPTED PASSWORD %(password)s SUPERUSER"], "user": "ssl_user"} + +TASK [setup_postgresql_db : postgresql SSL - install openssl] ****************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_db : postgresql SSL - create certs 1] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl req -new -nodes -text -out ~postgres/root.csr -keyout ~postgres/root.key -subj \"/CN=localhost.local\"", "delta": "0:00:00.147554", "end": "2022-11-29 10:06:53.044447", "msg": "", "rc": 0, "start": "2022-11-29 10:06:52.896893", "stderr": "Generating a RSA private key\n......................................................................................................................................+++++\n..........+++++\nwriting new private key to '/var/lib/postgresql/root.key'\n-----", "stderr_lines": ["Generating a RSA private key", "......................................................................................................................................+++++", "..........+++++", "writing new private key to '/var/lib/postgresql/root.key'", "-----"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 2] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl x509 -req -in ~postgres/root.csr -text -days 3650 -extensions v3_ca -signkey ~postgres/root.key -out ~postgres/root.crt", "delta": "0:00:00.005975", "end": "2022-11-29 10:06:53.202409", "msg": "", "rc": 0, "start": "2022-11-29 10:06:53.196434", "stderr": "Signature ok\nsubject=CN = localhost.local\nGetting Private key", "stderr_lines": ["Signature ok", "subject=CN = localhost.local", "Getting Private key"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 3] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl req -new -nodes -text -out ~postgres/server.csr -keyout ~postgres/server.key -subj \"/CN=localhost.local\"", "delta": "0:00:00.049329", "end": "2022-11-29 10:06:53.402782", "msg": "", "rc": 0, "start": "2022-11-29 10:06:53.353453", "stderr": "Generating a RSA private key\n......................+++++\n...................+++++\nwriting new private key to '/var/lib/postgresql/server.key'\n-----", "stderr_lines": ["Generating a RSA private key", "......................+++++", "...................+++++", "writing new private key to '/var/lib/postgresql/server.key'", "-----"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - create certs 4] ******************* +changed: [testhost] => {"changed": true, "cmd": "openssl x509 -req -in ~postgres/server.csr -text -days 365 -CA ~postgres/root.crt -CAkey ~postgres/root.key -CAcreateserial -out server.crt", "delta": "0:00:00.005814", "end": "2022-11-29 10:06:53.557590", "msg": "", "rc": 0, "start": "2022-11-29 10:06:53.551776", "stderr": "Signature ok\nsubject=CN = localhost.local\nGetting CA Private Key", "stderr_lines": ["Signature ok", "subject=CN = localhost.local", "Getting CA Private Key"], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : postgresql SSL - set right permissions to files] *** +changed: [testhost] => (item=~postgres/root.key) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/root.key", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/root.key", "size": 1704, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/server.key) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/server.key", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/server.key", "size": 1704, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/root.crt) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/root.crt", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/root.crt", "size": 2745, "state": "file", "uid": 105} +changed: [testhost] => (item=~postgres/server.csr) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "~postgres/server.csr", "mode": "0600", "owner": "postgres", "path": "/var/lib/postgresql/server.csr", "size": 3336, "state": "file", "uid": 105} + +TASK [setup_postgresql_db : postgresql SSL - enable SSL] *********************** +ok: [testhost] => {"changed": false, "context": "sighup", "name": "ssl", "prev_val_pretty": "on", "restart_required": false, "value": {"unit": null, "value": "on"}, "value_pretty": "on"} + +TASK [setup_postgresql_db : postgresql SSL - reload PostgreSQL to enable ssl on] *** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ActiveEnterTimestampMonotonic": "3701909638", "ActiveExitTimestamp": "Tue 2022-11-29 10:06:22 UTC", "ActiveExitTimestampMonotonic": "3686678447", "ActiveState": "active", "After": "system.slice postgresql@14-main.service sysinit.target systemd-journald.socket basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:06:37 UTC", "AssertTimestampMonotonic": "3701907098", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ConditionTimestampMonotonic": "3701907097", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ExecMainExitTimestampMonotonic": "3701909216", "ExecMainPID": "9703", "ExecMainStartTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ExecMainStartTimestampMonotonic": "3701907835", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[Tue 2022-11-29 10:06:37 UTC] ; stop_time=[Tue 2022-11-29 10:06:37 UTC] ; pid=9703 ; code=exited ; status=0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[Tue 2022-11-29 10:06:37 UTC] ; stop_time=[Tue 2022-11-29 10:06:37 UTC] ; pid=9703 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:06:22 UTC", "InactiveEnterTimestampMonotonic": "3686678447", "InactiveExitTimestamp": "Tue 2022-11-29 10:06:37 UTC", "InactiveExitTimestampMonotonic": "3701907970", "InvocationID": "e57ccdf8adf542b2accb947bc9626580", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:06:37 UTC", "StateChangeTimestampMonotonic": "3701909638", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [postgresql_idx : postgresql_idx - create test table called test_table] *** +changed: [testhost] => {"changed": true, "cmd": "psql postgres -U \"postgres\" -t -c \"CREATE TABLE test_table (id int, story text);\"", "delta": "0:00:00.047233", "end": "2022-11-29 10:06:54.994114", "msg": "", "rc": 0, "start": "2022-11-29 10:06:54.946881", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_idx : postgresql_idx - drop test tablespace called ssd if exists] *** +changed: [testhost] => {"changed": true, "cmd": "psql postgres -U \"postgres\" -t -c \"DROP TABLESPACE IF EXISTS ssd;\"", "delta": "0:00:00.032757", "end": "2022-11-29 10:06:55.179003", "msg": "", "rc": 0, "start": "2022-11-29 10:06:55.146246", "stderr": "NOTICE: tablespace \"ssd\" does not exist, skipping", "stderr_lines": ["NOTICE: tablespace \"ssd\" does not exist, skipping"], "stdout": "DROP TABLESPACE", "stdout_lines": ["DROP TABLESPACE"]} + +TASK [postgresql_idx : postgresql_idx - drop dir for test tablespace] ********** +ok: [testhost] => {"changed": false, "path": "/mnt/ssd", "state": "absent"} + +TASK [postgresql_idx : postgresql_idx - create dir for test tablespace] ******** +changed: [testhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "postgres", "path": "/mnt/ssd", "size": 4096, "state": "directory", "uid": 105} + +TASK [postgresql_idx : postgresql_idx - create test tablespace called ssd] ***** +changed: [testhost] => {"changed": true, "cmd": "psql postgres -U \"postgres\" -t -c \"CREATE TABLESPACE ssd LOCATION '/mnt/ssd';\"", "delta": "0:00:00.040632", "end": "2022-11-29 10:06:55.676613", "msg": "", "rc": 0, "start": "2022-11-29 10:06:55.635981", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLESPACE", "stdout_lines": ["CREATE TABLESPACE"]} + +TASK [postgresql_idx : postgresql_idx - create test schema] ******************** +changed: [testhost] => {"changed": true, "cmd": "psql postgres -U \"postgres\" -t -c \"CREATE SCHEMA foo;\"", "delta": "0:00:00.037436", "end": "2022-11-29 10:06:55.867320", "msg": "", "rc": 0, "start": "2022-11-29 10:06:55.829884", "stderr": "", "stderr_lines": [], "stdout": "CREATE SCHEMA", "stdout_lines": ["CREATE SCHEMA"]} + +TASK [postgresql_idx : postgresql_idx - create table in non-default schema] **** +changed: [testhost] => {"changed": true, "cmd": "psql postgres -U \"postgres\" -t -c \"CREATE TABLE foo.foo_table (id int, story text);\"", "delta": "0:00:00.041514", "end": "2022-11-29 10:06:56.062094", "msg": "", "rc": 0, "start": "2022-11-29 10:06:56.020580", "stderr": "", "stderr_lines": [], "stdout": "CREATE TABLE", "stdout_lines": ["CREATE TABLE"]} + +TASK [postgresql_idx : postgresql_idx - create btree index in check_mode] ****** +changed: [testhost] => {"changed": true, "name": "Test0_idx", "query": "", "schema": "", "state": "absent", "storage_params": [], "tblname": "", "tblspace": "", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - check nothing changed after the previous step] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_indexes WHERE indexname = 'Test0_idx'", "query_all_results": [[]], "query_list": ["SELECT 1 FROM pg_indexes WHERE indexname = 'Test0_idx'"], "query_result": [], "rowcount": 0, "statusmessage": "SELECT 0"} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - create btree index concurrently] ******* +changed: [testhost] => {"changed": true, "name": "Test0_idx", "query": "CREATE INDEX CONCURRENTLY \"Test0_idx\" ON \"public\".\"test_table\" USING BTREE (id, story)", "schema": "public", "state": "present", "storage_params": [], "tblname": "test_table", "tblspace": "", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - check the index exists after the previous step] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_indexes WHERE indexname = 'Test0_idx'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_indexes WHERE indexname = 'Test0_idx'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - try to create existing index again] **** +ok: [testhost] => {"changed": false, "name": "Test0_idx", "query": "", "schema": "public", "state": "present", "storage_params": [], "tblname": "test_table", "tblspace": "", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - create btree index - non-default schema, tablespace, storage parameter] *** +changed: [testhost] => {"changed": true, "name": "foo_test_idx", "query": "CREATE INDEX CONCURRENTLY \"foo_test_idx\" ON \"foo\".\"foo_table\" USING BTREE (id,story) WITH (fillfactor=90) TABLESPACE \"ssd\"", "schema": "foo", "state": "present", "storage_params": ["fillfactor=90"], "tblname": "foo_table", "tblspace": "ssd", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - create brin index not concurrently] **** +changed: [testhost] => {"changed": true, "name": "test_brin_idx", "query": "CREATE INDEX \"test_brin_idx\" ON \"public\".\"test_table\" USING brin (id)", "schema": "public", "state": "present", "storage_params": [], "tblname": "test_table", "tblspace": "", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - create index with condition] *********** +changed: [testhost] => {"changed": true, "name": "test1_idx", "query": "CREATE INDEX CONCURRENTLY \"test1_idx\" ON \"public\".\"test_table\" USING BTREE (id) WHERE id > 1 AND id != 10", "schema": "public", "state": "present", "storage_params": [], "tblname": "test_table", "tblspace": "", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - create unique index] ******************* +changed: [testhost] => {"changed": true, "name": "test_unique0_idx", "query": "CREATE UNIQUE INDEX CONCURRENTLY \"test_unique0_idx\" ON \"public\".\"test_table\" USING BTREE (story)", "schema": "public", "state": "present", "storage_params": [], "tblname": "test_table", "tblspace": "", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - avoid unique index with type different of btree] *** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Only btree currently supports unique indexes"} +...ignoring + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - drop index from specific schema cascade in check_mode] *** +changed: [testhost] => {"changed": true, "name": "foo_test_idx", "query": "", "schema": "foo", "state": "present", "storage_params": ["fillfactor=90"], "tblname": "foo_table", "tblspace": "ssd", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - check the index exists after the previous step] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_indexes WHERE indexname = 'foo_test_idx' AND schemaname = 'foo'", "query_all_results": [[{"?column?": 1}]], "query_list": ["SELECT 1 FROM pg_indexes WHERE indexname = 'foo_test_idx' AND schemaname = 'foo'"], "query_result": [{"?column?": 1}], "rowcount": 1, "statusmessage": "SELECT 1"} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - drop index from specific schema cascade] *** +changed: [testhost] => {"changed": true, "name": "foo_test_idx", "query": "DROP INDEX \"foo\".\"foo_test_idx\" CASCADE", "schema": "foo", "state": "absent", "storage_params": ["fillfactor=90"], "tblname": "foo_table", "tblspace": "ssd", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - check the index doesn't exist after the previous step] *** +ok: [testhost] => {"changed": false, "query": "SELECT 1 FROM pg_indexes WHERE indexname = 'foo_test_idx' and schemaname = 'foo'", "query_all_results": [[]], "query_list": ["SELECT 1 FROM pg_indexes WHERE indexname = 'foo_test_idx' and schemaname = 'foo'"], "query_result": [], "rowcount": 0, "statusmessage": "SELECT 0"} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_idx : postgresql_idx - try to drop not existing index] ******** +ok: [testhost] => {"changed": false, "name": "foo_test_idx", "query": "", "schema": "", "state": "absent", "storage_params": [], "tblname": "", "tblspace": "", "valid": true} + +TASK [postgresql_idx : assert] ************************************************* +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +PLAY RECAP ********************************************************************* +testhost : ok=70 changed=34 unreachable=0 failed=0 skipped=16 rescued=0 ignored=1 + +Configuring target inventory. +Running postgresql_info integration test role +Stream command: ansible-playbook postgresql_info-llfh7rrc.yml -i inventory -v +[WARNING]: running playbook inside collection community.postgresql +[WARNING]: While constructing a mapping from /root/ansible_collections/communit +y/postgresql/tests/output/.tmp/integration/postgresql_info-fvobnu61- +ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_info/tasks/postgresql_info_initial +.yml, line 226, column 5, found a duplicate dict key (register). Using last +defined value only. +[WARNING]: While constructing a mapping from /root/ansible_collections/communit +y/postgresql/tests/output/.tmp/integration/postgresql_info-fvobnu61- +ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_info/tasks/postgresql_info_initial +.yml, line 21, column 7, found a duplicate dict key (login_db). Using last +defined value only. +[WARNING]: While constructing a mapping from /root/ansible_collections/communit +y/postgresql/tests/output/.tmp/integration/postgresql_info-fvobnu61- +ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_info/tasks/postgresql_info_initial +.yml, line 37, column 7, found a duplicate dict key (login_db). Using last +defined value only. +[WARNING]: While constructing a mapping from /root/ansible_collections/communit +y/postgresql/tests/output/.tmp/integration/postgresql_info-fvobnu61- +ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_info/tasks/postgresql_info_initial +.yml, line 53, column 7, found a duplicate dict key (login_user). Using last +defined value only. +[WARNING]: While constructing a mapping from /root/ansible_collections/communit +y/postgresql/tests/output/.tmp/integration/postgresql_info-fvobnu61- +ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_info/tasks/postgresql_info_initial +.yml, line 207, column 7, found a duplicate dict key (login_db). Using last +defined value only. +[WARNING]: While constructing a mapping from /root/ansible_collections/communit +y/postgresql/tests/output/.tmp/integration/postgresql_info-fvobnu61- +ÅÑŚÌβŁÈ/tests/integration/targets/postgresql_info/tasks/postgresql_info_initial +.yml, line 229, column 7, found a duplicate dict key (login_db). Using last +defined value only. +Using /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_info-fvobnu61-ÅÑŚÌβŁÈ/tests/integration/integration.cfg as config file + +PLAY [testhost] **************************************************************** + +TASK [Gathering Facts] ********************************************************* +ok: [testhost] + +TASK [setup_postgresql_replication : Remove preinstalled packages] ************* +changed: [testhost] => {"changed": true, "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9\n libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2\n libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1\n libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5\n libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8\n libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2\n libllvm10 libltdl7 libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3\n libodbc1 libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15\n libprotobuf-c1 libqhull7 libsensors-config libsensors5 libsfcgal1\n libspatialite7 libsuperlu5 libsz2 libtiff5 liburiparser1 libwebp6\n libxerces-c3.2 mysql-common odbcinst odbcinst1debian2 poppler-data proj-bin\n proj-data sysstat\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n postgresql-14 postgresql-14-postgis-3 python3-psycopg2\n0 upgraded, 0 newly installed, 3 to remove and 36 not upgraded.\nAfter this operation, 63.1 MB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 27500 files and directories currently installed.)\r\nRemoving postgresql-14-postgis-3 (3.3.2+dfsg-1.pgdg20.04+1) ...\r\nRemoving postgresql-14 (14.6-1.pgdg20.04+1) ...\r\nRemoving python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...\r\nProcessing triggers for postgresql-common (246.pgdg20.04+1) ...\r\nBuilding PostgreSQL dictionaries from installed myspell/hunspell packages...\r\nRemoving obsolete dictionary files:\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9", " libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2", " libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1", " libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5", " libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8", " libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2", " libllvm10 libltdl7 libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3", " libodbc1 libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15", " libprotobuf-c1 libqhull7 libsensors-config libsensors5 libsfcgal1", " libspatialite7 libsuperlu5 libsz2 libtiff5 liburiparser1 libwebp6", " libxerces-c3.2 mysql-common odbcinst odbcinst1debian2 poppler-data proj-bin", " proj-data sysstat", "Use 'apt autoremove' to remove them.", "The following packages will be REMOVED:", " postgresql-14 postgresql-14-postgis-3 python3-psycopg2", "0 upgraded, 0 newly installed, 3 to remove and 36 not upgraded.", "After this operation, 63.1 MB disk space will be freed.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 27500 files and directories currently installed.)", "Removing postgresql-14-postgis-3 (3.3.2+dfsg-1.pgdg20.04+1) ...", "Removing postgresql-14 (14.6-1.pgdg20.04+1) ...", "Removing python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...", "Processing triggers for postgresql-common (246.pgdg20.04+1) ...", "Building PostgreSQL dictionaries from installed myspell/hunspell packages...", "Removing obsolete dictionary files:"]} + +TASK [setup_postgresql_replication : Kill all postgres processes] ************** +fatal: [testhost]: FAILED! => {"changed": true, "cmd": "pkill -u postgres", "delta": "0:00:00.003128", "end": "2022-11-29 10:07:03.602448", "msg": "non-zero return code", "rc": 1, "start": "2022-11-29 10:07:03.599320", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} +...ignoring + +TASK [setup_postgresql_replication : stop postgresql service] ****************** +fatal: [testhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'postgresql_service' is undefined. 'postgresql_service' is undefined\n\nThe error appears to be in '/root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_info-fvobnu61-ÅÑŚÌβŁÈ/tests/integration/targets/setup_postgresql_replication/tasks/setup_postgresql_cluster.yml': line 12, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: stop postgresql service\n ^ here\n"} +...ignoring + +TASK [setup_postgresql_replication : Delete postgresql related files] ********** +ok: [testhost] => (item=/var/lib/pgsql/primary) => {"ansible_loop_var": "item", "changed": false, "item": "/var/lib/pgsql/primary", "path": "/var/lib/pgsql/primary", "state": "absent"} +ok: [testhost] => (item=/var/lib/pgsql/primary/data) => {"ansible_loop_var": "item", "changed": false, "item": "/var/lib/pgsql/primary/data", "path": "/var/lib/pgsql/primary/data", "state": "absent"} +ok: [testhost] => (item=/var/lib/pgsql/replica) => {"ansible_loop_var": "item", "changed": false, "item": "/var/lib/pgsql/replica", "path": "/var/lib/pgsql/replica", "state": "absent"} +ok: [testhost] => (item=/var/lib/pgsql/replica/data) => {"ansible_loop_var": "item", "changed": false, "item": "/var/lib/pgsql/replica/data", "path": "/var/lib/pgsql/replica/data", "state": "absent"} +changed: [testhost] => (item=/etc/postgresql) => {"ansible_loop_var": "item", "changed": true, "item": "/etc/postgresql", "path": "/etc/postgresql", "state": "absent"} +changed: [testhost] => (item=/var/lib/postgresql) => {"ansible_loop_var": "item", "changed": true, "item": "/var/lib/postgresql", "path": "/var/lib/postgresql", "state": "absent"} + +TASK [setup_postgresql_replication : Install wget] ***************************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_replication : Add a repository] ************************* +changed: [testhost] => {"changed": true, "cmd": "echo \"deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" > /etc/apt/sources.list.d/pgdg.list", "delta": "0:00:00.029537", "end": "2022-11-29 10:07:05.595479", "msg": "", "rc": 0, "start": "2022-11-29 10:07:05.565942", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_replication : Add a repository] ************************* +changed: [testhost] => {"changed": true, "cmd": "wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -", "delta": "0:00:00.376073", "end": "2022-11-29 10:07:06.121217", "msg": "", "rc": 0, "start": "2022-11-29 10:07:05.745144", "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)"], "stdout": "OK", "stdout_lines": ["OK"]} + +TASK [setup_postgresql_replication : Add a repository] ************************* +changed: [testhost] => {"changed": true, "cmd": "apt -y update", "delta": "0:00:01.708145", "end": "2022-11-29 10:07:07.979846", "msg": "", "rc": 0, "start": "2022-11-29 10:07:06.271701", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease\nHit:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease\nHit:3 http://archive.ubuntu.com/ubuntu focal InRelease\nHit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease\nReading package lists...\nBuilding dependency tree...\nReading state information...\n36 packages can be upgraded. Run 'apt list --upgradable' to see them.", "stdout_lines": ["Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease", "Hit:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease", "Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease", "Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease", "Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease", "Reading package lists...", "Building dependency tree...", "Reading state information...", "36 packages can be upgraded. Run 'apt list --upgradable' to see them."]} + +TASK [setup_postgresql_replication : Install packages] ************************* +changed: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": true, "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9\n libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2\n libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1\n libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5\n libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8\n libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7\n libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1\n libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1\n libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5\n liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2\n poppler-data proj-bin proj-data\nUse 'apt autoremove' to remove them.\nThe following additional packages will be installed:\n postgresql-15 postgresql-client-15\nSuggested packages:\n postgresql-doc-15 python-psycopg2-doc\nThe following NEW packages will be installed:\n postgresql-14 postgresql-15 postgresql-client-15 postgresql-contrib\n python3-psycopg2\n0 upgraded, 5 newly installed, 0 to remove and 36 not upgraded.\nNeed to get 18.0 MB/34.0 MB of archives.\nAfter this operation, 113 MB of additional disk space will be used.\nGet:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-15 amd64 15.1-1.pgdg20.04+1 [1678 kB]\nGet:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-15 amd64 15.1-1.pgdg20.04+1 [16.3 MB]\nGet:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-contrib all 15+246.pgdg20.04+1 [67.5 kB]\nPreconfiguring packages ...\nFetched 18.0 MB in 2s (11.5 MB/s)\nSelecting previously unselected package postgresql-14.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 25826 files and directories currently installed.)\r\nPreparing to unpack .../postgresql-14_14.6-1.pgdg20.04+1_amd64.deb ...\r\nUnpacking postgresql-14 (14.6-1.pgdg20.04+1) ...\r\nSelecting previously unselected package postgresql-client-15.\r\nPreparing to unpack .../postgresql-client-15_15.1-1.pgdg20.04+1_amd64.deb ...\r\nUnpacking postgresql-client-15 (15.1-1.pgdg20.04+1) ...\r\nSelecting previously unselected package postgresql-15.\r\nPreparing to unpack .../postgresql-15_15.1-1.pgdg20.04+1_amd64.deb ...\r\nUnpacking postgresql-15 (15.1-1.pgdg20.04+1) ...\r\nSelecting previously unselected package postgresql-contrib.\r\nPreparing to unpack .../postgresql-contrib_15+246.pgdg20.04+1_all.deb ...\r\nUnpacking postgresql-contrib (15+246.pgdg20.04+1) ...\r\nSelecting previously unselected package python3-psycopg2.\r\nPreparing to unpack .../python3-psycopg2_2.8.6-2~pgdg20.04+1_amd64.deb ...\r\nUnpacking python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...\r\nSetting up postgresql-14 (14.6-1.pgdg20.04+1) ...\r\nupdate-alternatives: using /usr/share/postgresql/14/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode\r\nSetting up postgresql-client-15 (15.1-1.pgdg20.04+1) ...\r\nupdate-alternatives: using /usr/share/postgresql/15/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode\r\nSetting up python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...\r\nSetting up postgresql-15 (15.1-1.pgdg20.04+1) ...\r\nCreating new PostgreSQL cluster 15/main ...\r\n/usr/lib/postgresql/15/bin/initdb -D /var/lib/postgresql/15/main --auth-local peer --auth-host scram-sha-256 --no-instructions\r\nThe files belonging to this database system will be owned by user \"postgres\".\r\nThis user must also own the server process.\r\n\r\nThe database cluster will be initialized with locale \"C.UTF-8\".\r\nThe default database encoding has accordingly been set to \"UTF8\".\r\nThe default text search configuration will be set to \"english\".\r\n\r\nData page checksums are disabled.\r\n\r\nfixing permissions on existing directory /var/lib/postgresql/15/main ... ok\r\ncreating subdirectories ... ok\r\nselecting dynamic shared memory implementation ... posix\r\nselecting default max_connections ... 100\r\nselecting default shared_buffers ... 128MB\r\nselecting default time zone ... Etc/UTC\r\ncreating configuration files ... ok\r\nrunning bootstrap script ... ok\r\nperforming post-bootstrap initialization ... ok\r\nsyncing data to disk ... ok\r\nupdate-alternatives: using /usr/share/postgresql/15/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode\r\nSetting up postgresql-contrib (15+246.pgdg20.04+1) ...\r\nProcessing triggers for postgresql-common (246.pgdg20.04+1) ...\r\nBuilding PostgreSQL dictionaries from installed myspell/hunspell packages...\r\nRemoving obsolete dictionary files:\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9", " libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2", " libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1", " libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5", " libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8", " libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7", " libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1", " libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1", " libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5", " liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2", " poppler-data proj-bin proj-data", "Use 'apt autoremove' to remove them.", "The following additional packages will be installed:", " postgresql-15 postgresql-client-15", "Suggested packages:", " postgresql-doc-15 python-psycopg2-doc", "The following NEW packages will be installed:", " postgresql-14 postgresql-15 postgresql-client-15 postgresql-contrib", " python3-psycopg2", "0 upgraded, 5 newly installed, 0 to remove and 36 not upgraded.", "Need to get 18.0 MB/34.0 MB of archives.", "After this operation, 113 MB of additional disk space will be used.", "Get:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-client-15 amd64 15.1-1.pgdg20.04+1 [1678 kB]", "Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-15 amd64 15.1-1.pgdg20.04+1 [16.3 MB]", "Get:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 postgresql-contrib all 15+246.pgdg20.04+1 [67.5 kB]", "Preconfiguring packages ...", "Fetched 18.0 MB in 2s (11.5 MB/s)", "Selecting previously unselected package postgresql-14.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 25826 files and directories currently installed.)", "Preparing to unpack .../postgresql-14_14.6-1.pgdg20.04+1_amd64.deb ...", "Unpacking postgresql-14 (14.6-1.pgdg20.04+1) ...", "Selecting previously unselected package postgresql-client-15.", "Preparing to unpack .../postgresql-client-15_15.1-1.pgdg20.04+1_amd64.deb ...", "Unpacking postgresql-client-15 (15.1-1.pgdg20.04+1) ...", "Selecting previously unselected package postgresql-15.", "Preparing to unpack .../postgresql-15_15.1-1.pgdg20.04+1_amd64.deb ...", "Unpacking postgresql-15 (15.1-1.pgdg20.04+1) ...", "Selecting previously unselected package postgresql-contrib.", "Preparing to unpack .../postgresql-contrib_15+246.pgdg20.04+1_all.deb ...", "Unpacking postgresql-contrib (15+246.pgdg20.04+1) ...", "Selecting previously unselected package python3-psycopg2.", "Preparing to unpack .../python3-psycopg2_2.8.6-2~pgdg20.04+1_amd64.deb ...", "Unpacking python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...", "Setting up postgresql-14 (14.6-1.pgdg20.04+1) ...", "update-alternatives: using /usr/share/postgresql/14/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode", "Setting up postgresql-client-15 (15.1-1.pgdg20.04+1) ...", "update-alternatives: using /usr/share/postgresql/15/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode", "Setting up python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...", "Setting up postgresql-15 (15.1-1.pgdg20.04+1) ...", "Creating new PostgreSQL cluster 15/main ...", "/usr/lib/postgresql/15/bin/initdb -D /var/lib/postgresql/15/main --auth-local peer --auth-host scram-sha-256 --no-instructions", "The files belonging to this database system will be owned by user \"postgres\".", "This user must also own the server process.", "", "The database cluster will be initialized with locale \"C.UTF-8\".", "The default database encoding has accordingly been set to \"UTF8\".", "The default text search configuration will be set to \"english\".", "", "Data page checksums are disabled.", "", "fixing permissions on existing directory /var/lib/postgresql/15/main ... ok", "creating subdirectories ... ok", "selecting dynamic shared memory implementation ... posix", "selecting default max_connections ... 100", "selecting default shared_buffers ... 128MB", "selecting default time zone ... Etc/UTC", "creating configuration files ... ok", "running bootstrap script ... ok", "performing post-bootstrap initialization ... ok", "syncing data to disk ... ok", "update-alternatives: using /usr/share/postgresql/15/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode", "Setting up postgresql-contrib (15+246.pgdg20.04+1) ...", "Processing triggers for postgresql-common (246.pgdg20.04+1) ...", "Building PostgreSQL dictionaries from installed myspell/hunspell packages...", "Removing obsolete dictionary files:"]} + +TASK [setup_postgresql_replication : Create root dirs] ************************* +changed: [testhost] => (item=/var/lib/pgsql/primary) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "/var/lib/pgsql/primary", "mode": "0700", "owner": "postgres", "path": "/var/lib/pgsql/primary", "size": 4096, "state": "directory", "uid": 105} +changed: [testhost] => (item=/var/lib/pgsql/primary/data) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "/var/lib/pgsql/primary/data", "mode": "0700", "owner": "postgres", "path": "/var/lib/pgsql/primary/data", "size": 4096, "state": "directory", "uid": 105} +changed: [testhost] => (item=/var/lib/pgsql/replica) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "/var/lib/pgsql/replica", "mode": "0700", "owner": "postgres", "path": "/var/lib/pgsql/replica", "size": 4096, "state": "directory", "uid": 105} +changed: [testhost] => (item=/var/lib/pgsql/replica/data) => {"ansible_loop_var": "item", "changed": true, "gid": 108, "group": "postgres", "item": "/var/lib/pgsql/replica/data", "mode": "0700", "owner": "postgres", "path": "/var/lib/pgsql/replica/data", "size": 4096, "state": "directory", "uid": 105} + +TASK [setup_postgresql_replication : Find initdb] ****************************** +changed: [testhost] => {"changed": true, "cmd": "find /usr/lib -type f -name \"initdb\"", "delta": "0:00:00.026472", "end": "2022-11-29 10:07:22.011890", "msg": "", "rc": 0, "start": "2022-11-29 10:07:21.985418", "stderr": "", "stderr_lines": [], "stdout": "/usr/lib/postgresql/15/bin/initdb\n/usr/lib/postgresql/14/bin/initdb", "stdout_lines": ["/usr/lib/postgresql/15/bin/initdb", "/usr/lib/postgresql/14/bin/initdb"]} + +TASK [setup_postgresql_replication : Set path to initdb] *********************** +ok: [testhost] => {"ansible_facts": {"initdb": "/usr/lib/postgresql/15/bin/initdb\n/usr/lib/postgresql/14/bin/initdb"}, "changed": false} + +TASK [setup_postgresql_replication : Initialize databases] ********************* +[WARNING]: Unable to use /var/lib/postgresql/.ansible/tmp as temporary +directory, failing back to system: [Errno 13] Permission denied: +'/var/lib/postgresql/.ansible' +changed: [testhost] => (item=/var/lib/pgsql/primary/data) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/lib/postgresql/15/bin/initdb\n/usr/lib/postgresql/14/bin/initdb --pgdata /var/lib/pgsql/primary/data", "delta": "0:00:02.948710", "end": "2022-11-29 10:07:25.148727", "item": "/var/lib/pgsql/primary/data", "msg": "", "rc": 0, "start": "2022-11-29 10:07:22.200017", "stderr": "initdb: error: no data directory specified\ninitdb: hint: You must identify the directory where the data for this database system will reside. Do this with either the invocation option -D or the environment variable PGDATA.\ninitdb: warning: enabling \"trust\" authentication for local connections\nYou can change this by editing pg_hba.conf or using the option -A, or\n--auth-local and --auth-host, the next time you run initdb.", "stderr_lines": ["initdb: error: no data directory specified", "initdb: hint: You must identify the directory where the data for this database system will reside. Do this with either the invocation option -D or the environment variable PGDATA.", "initdb: warning: enabling \"trust\" authentication for local connections", "You can change this by editing pg_hba.conf or using the option -A, or", "--auth-local and --auth-host, the next time you run initdb."], "stdout": "The files belonging to this database system will be owned by user \"postgres\".\nThis user must also own the server process.\n\nThe database cluster will be initialized with locale \"en_US.UTF-8\".\nThe default database encoding has accordingly been set to \"UTF8\".\nThe default text search configuration will be set to \"english\".\n\nData page checksums are disabled.\n\nfixing permissions on existing directory /var/lib/pgsql/primary/data ... ok\ncreating subdirectories ... ok\nselecting dynamic shared memory implementation ... posix\nselecting default max_connections ... 100\nselecting default shared_buffers ... 128MB\nselecting default time zone ... Etc/UTC\ncreating configuration files ... ok\nrunning bootstrap script ... ok\nperforming post-bootstrap initialization ... ok\nsyncing data to disk ... ok\n\n\nSuccess. You can now start the database server using:\n\n /usr/lib/postgresql/14/bin/pg_ctl -D /var/lib/pgsql/primary/data -l logfile start", "stdout_lines": ["The files belonging to this database system will be owned by user \"postgres\".", "This user must also own the server process.", "", "The database cluster will be initialized with locale \"en_US.UTF-8\".", "The default database encoding has accordingly been set to \"UTF8\".", "The default text search configuration will be set to \"english\".", "", "Data page checksums are disabled.", "", "fixing permissions on existing directory /var/lib/pgsql/primary/data ... ok", "creating subdirectories ... ok", "selecting dynamic shared memory implementation ... posix", "selecting default max_connections ... 100", "selecting default shared_buffers ... 128MB", "selecting default time zone ... Etc/UTC", "creating configuration files ... ok", "running bootstrap script ... ok", "performing post-bootstrap initialization ... ok", "syncing data to disk ... ok", "", "", "Success. You can now start the database server using:", "", " /usr/lib/postgresql/14/bin/pg_ctl -D /var/lib/pgsql/primary/data -l logfile start"], "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=/var/lib/pgsql/replica/data) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/lib/postgresql/15/bin/initdb\n/usr/lib/postgresql/14/bin/initdb --pgdata /var/lib/pgsql/replica/data", "delta": "0:00:02.939853", "end": "2022-11-29 10:07:28.229230", "item": "/var/lib/pgsql/replica/data", "msg": "", "rc": 0, "start": "2022-11-29 10:07:25.289377", "stderr": "initdb: error: no data directory specified\ninitdb: hint: You must identify the directory where the data for this database system will reside. Do this with either the invocation option -D or the environment variable PGDATA.\ninitdb: warning: enabling \"trust\" authentication for local connections\nYou can change this by editing pg_hba.conf or using the option -A, or\n--auth-local and --auth-host, the next time you run initdb.", "stderr_lines": ["initdb: error: no data directory specified", "initdb: hint: You must identify the directory where the data for this database system will reside. Do this with either the invocation option -D or the environment variable PGDATA.", "initdb: warning: enabling \"trust\" authentication for local connections", "You can change this by editing pg_hba.conf or using the option -A, or", "--auth-local and --auth-host, the next time you run initdb."], "stdout": "The files belonging to this database system will be owned by user \"postgres\".\nThis user must also own the server process.\n\nThe database cluster will be initialized with locale \"en_US.UTF-8\".\nThe default database encoding has accordingly been set to \"UTF8\".\nThe default text search configuration will be set to \"english\".\n\nData page checksums are disabled.\n\nfixing permissions on existing directory /var/lib/pgsql/replica/data ... ok\ncreating subdirectories ... ok\nselecting dynamic shared memory implementation ... posix\nselecting default max_connections ... 100\nselecting default shared_buffers ... 128MB\nselecting default time zone ... Etc/UTC\ncreating configuration files ... ok\nrunning bootstrap script ... ok\nperforming post-bootstrap initialization ... ok\nsyncing data to disk ... ok\n\n\nSuccess. You can now start the database server using:\n\n /usr/lib/postgresql/14/bin/pg_ctl -D /var/lib/pgsql/replica/data -l logfile start", "stdout_lines": ["The files belonging to this database system will be owned by user \"postgres\".", "This user must also own the server process.", "", "The database cluster will be initialized with locale \"en_US.UTF-8\".", "The default database encoding has accordingly been set to \"UTF8\".", "The default text search configuration will be set to \"english\".", "", "Data page checksums are disabled.", "", "fixing permissions on existing directory /var/lib/pgsql/replica/data ... ok", "creating subdirectories ... ok", "selecting dynamic shared memory implementation ... posix", "selecting default max_connections ... 100", "selecting default shared_buffers ... 128MB", "selecting default time zone ... Etc/UTC", "creating configuration files ... ok", "running bootstrap script ... ok", "performing post-bootstrap initialization ... ok", "syncing data to disk ... ok", "", "", "Success. You can now start the database server using:", "", " /usr/lib/postgresql/14/bin/pg_ctl -D /var/lib/pgsql/replica/data -l logfile start"], "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [setup_postgresql_replication : Copy config templates] ******************** +changed: [testhost] => (item={'conf_templ': 'primary_postgresql.conf.j2', 'conf_dest': '/var/lib/pgsql/primary/data/postgresql.conf'}) => {"ansible_loop_var": "item", "changed": true, "checksum": "c966ca47bd9e3e7df5b66556c96a08ad5eaaa2fe", "dest": "/var/lib/pgsql/primary/data/postgresql.conf", "gid": 108, "group": "postgres", "item": {"conf_dest": "/var/lib/pgsql/primary/data/postgresql.conf", "conf_templ": "primary_postgresql.conf.j2"}, "md5sum": "1dc2c4cf8369af26bb86ba45e1b519d1", "mode": "0600", "owner": "postgres", "size": 695, "src": "/root/.ansible/tmp/ansible-tmp-1669716448.2909348-2699-159982849404846/source", "state": "file", "uid": 105} +changed: [testhost] => (item={'conf_templ': 'replica_postgresql.conf.j2', 'conf_dest': '/var/lib/pgsql/replica/data/postgresql.conf'}) => {"ansible_loop_var": "item", "changed": true, "checksum": "bb216deefa68bd646be25d03258a055913e692ab", "dest": "/var/lib/pgsql/replica/data/postgresql.conf", "gid": 108, "group": "postgres", "item": {"conf_dest": "/var/lib/pgsql/replica/data/postgresql.conf", "conf_templ": "replica_postgresql.conf.j2"}, "md5sum": "815942e2c5a2863231b59ffd6fe50324", "mode": "0600", "owner": "postgres", "size": 695, "src": "/root/.ansible/tmp/ansible-tmp-1669716448.8563857-2699-278849208856734/source", "state": "file", "uid": 105} +changed: [testhost] => (item={'conf_templ': 'pg_hba.conf.j2', 'conf_dest': '/var/lib/pgsql/primary/data/pg_hba.conf'}) => {"ansible_loop_var": "item", "changed": true, "checksum": "6364ba28fb35e64c9989175ccc10c9d88731193d", "dest": "/var/lib/pgsql/primary/data/pg_hba.conf", "gid": 108, "group": "postgres", "item": {"conf_dest": "/var/lib/pgsql/primary/data/pg_hba.conf", "conf_templ": "pg_hba.conf.j2"}, "md5sum": "18ce0d057d3003ac82ec35204024f371", "mode": "0600", "owner": "postgres", "size": 427, "src": "/root/.ansible/tmp/ansible-tmp-1669716449.186659-2699-45823086203543/source", "state": "file", "uid": 105} +changed: [testhost] => (item={'conf_templ': 'pg_hba.conf.j2', 'conf_dest': '/var/lib/pgsql/replica/data/pg_hba.conf'}) => {"ansible_loop_var": "item", "changed": true, "checksum": "6364ba28fb35e64c9989175ccc10c9d88731193d", "dest": "/var/lib/pgsql/replica/data/pg_hba.conf", "gid": 108, "group": "postgres", "item": {"conf_dest": "/var/lib/pgsql/replica/data/pg_hba.conf", "conf_templ": "pg_hba.conf.j2"}, "md5sum": "18ce0d057d3003ac82ec35204024f371", "mode": "0600", "owner": "postgres", "size": 427, "src": "/root/.ansible/tmp/ansible-tmp-1669716449.5083601-2699-216379965618614/source", "state": "file", "uid": 105} + +TASK [setup_postgresql_replication : Find pg_ctl] ****************************** +changed: [testhost] => {"changed": true, "cmd": "find /usr/lib -type f -name \"pg_ctl\"", "delta": "0:00:00.023264", "end": "2022-11-29 10:07:29.978841", "msg": "", "rc": 0, "start": "2022-11-29 10:07:29.955577", "stderr": "", "stderr_lines": [], "stdout": "/usr/lib/postgresql/15/bin/pg_ctl\n/usr/lib/postgresql/14/bin/pg_ctl", "stdout_lines": ["/usr/lib/postgresql/15/bin/pg_ctl", "/usr/lib/postgresql/14/bin/pg_ctl"]} + +TASK [setup_postgresql_replication : Set path to initdb] *********************** +ok: [testhost] => {"ansible_facts": {"pg_ctl": "/usr/lib/postgresql/15/bin/pg_ctl\n/usr/lib/postgresql/14/bin/pg_ctl"}, "changed": false} + +TASK [setup_postgresql_replication : Start servers] **************************** +changed: [testhost] => (item={'datadir': '/var/lib/pgsql/primary/data', 'port': 5431}) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/lib/postgresql/15/bin/pg_ctl\n/usr/lib/postgresql/14/bin/pg_ctl -D /var/lib/pgsql/primary/data -o \"-p 5431\" start", "delta": "0:00:01.113049", "end": "2022-11-29 10:07:31.280469", "item": {"datadir": "/var/lib/pgsql/primary/data", "port": 5431}, "msg": "", "rc": 0, "start": "2022-11-29 10:07:30.167420", "stderr": "pg_ctl: no operation specified\nTry \"pg_ctl --help\" for more information.", "stderr_lines": ["pg_ctl: no operation specified", "Try \"pg_ctl --help\" for more information."], "stdout": "waiting for server to start....2022-11-29 13:07:30.194 MSK[12122]LOG: redirecting log output to logging collector process\n2022-11-29 13:07:30.194 MSK[12122]HINT: Future log output will appear in directory \"log\".\n done\nserver started", "stdout_lines": ["waiting for server to start....2022-11-29 13:07:30.194 MSK[12122]LOG: redirecting log output to logging collector process", "2022-11-29 13:07:30.194 MSK[12122]HINT: Future log output will appear in directory \"log\".", " done", "server started"], "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item={'datadir': '/var/lib/pgsql/replica/data', 'port': 5434}) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/lib/postgresql/15/bin/pg_ctl\n/usr/lib/postgresql/14/bin/pg_ctl -D /var/lib/pgsql/replica/data -o \"-p 5434\" start", "delta": "0:00:01.113003", "end": "2022-11-29 10:07:32.570533", "item": {"datadir": "/var/lib/pgsql/replica/data", "port": 5434}, "msg": "", "rc": 0, "start": "2022-11-29 10:07:31.457530", "stderr": "pg_ctl: no operation specified\nTry \"pg_ctl --help\" for more information.", "stderr_lines": ["pg_ctl: no operation specified", "Try \"pg_ctl --help\" for more information."], "stdout": "waiting for server to start....2022-11-29 13:07:31.491 MSK[12141]LOG: redirecting log output to logging collector process\n2022-11-29 13:07:31.491 MSK[12141]HINT: Future log output will appear in directory \"log\".\n done\nserver started", "stdout_lines": ["waiting for server to start....2022-11-29 13:07:31.491 MSK[12141]LOG: redirecting log output to logging collector process", "2022-11-29 13:07:31.491 MSK[12141]HINT: Future log output will appear in directory \"log\".", " done", "server started"], "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [setup_postgresql_replication : Check connectivity to the primary and get PostgreSQL version] *** +ok: [testhost] => {"changed": false, "conn_err_msg": "", "is_available": true, "server_version": {"full": "14.6", "major": 14, "minor": 6, "raw": "PostgreSQL 14.6 (Ubuntu 14.6-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [setup_postgresql_replication : Check connectivity to the replica and get PostgreSQL version] *** +ok: [testhost] => {"changed": false, "conn_err_msg": "", "is_available": true, "server_version": {"full": "14.6", "major": 14, "minor": 6, "raw": "PostgreSQL 14.6 (Ubuntu 14.6-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [setup_postgresql_replication : Define server version] ******************** +ok: [testhost] => {"ansible_facts": {"pg_major_version": "14", "pg_minor_version": "6"}, "changed": false} + +TASK [setup_postgresql_replication : Print PostgreSQL version] ***************** +ok: [testhost] => { + "msg": "PostgreSQL version is 14.6" +} + +TASK [postgresql_info : Create test db] **************************************** +changed: [testhost] => (item=5431) => {"ansible_loop_var": "item", "changed": true, "db": "acme_db", "executed_commands": ["CREATE DATABASE \"acme_db\""], "item": 5431, "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=5434) => {"ansible_loop_var": "item", "changed": true, "db": "acme_db", "executed_commands": ["CREATE DATABASE \"acme_db\""], "item": 5434, "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_info : Create test role] ************************************** +changed: [testhost] => (item=5431) => {"ansible_loop_var": "item", "changed": true, "item": 5431, "queries": ["CREATE USER \"logical_replication\" WITH ENCRYPTED PASSWORD %(password)s LOGIN REPLICATION"], "user": "logical_replication", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=5434) => {"ansible_loop_var": "item", "changed": true, "item": 5434, "queries": ["CREATE USER \"logical_replication\" WITH ENCRYPTED PASSWORD %(password)s LOGIN REPLICATION"], "user": "logical_replication", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_info : Create test table] ************************************* +changed: [testhost] => (item=5431) => {"ansible_loop_var": "item", "changed": true, "item": 5431, "owner": "postgres", "queries": ["CREATE TABLE \"acme1\" (id int)"], "state": "present", "storage_params": [], "table": "acme1", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=5434) => {"ansible_loop_var": "item", "changed": true, "item": 5434, "owner": "postgres", "queries": ["CREATE TABLE \"acme1\" (id int)"], "state": "present", "storage_params": [], "table": "acme1", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_info : Create publication] ************************************ +changed: [testhost] => {"alltables": true, "changed": true, "exists": true, "owner": "postgres", "parameters": {"publish": {"delete": true, "insert": true, "truncate": true, "update": true}}, "queries": ["CREATE PUBLICATION \"first_publication\" FOR ALL TABLES"], "tables": []} + +TASK [postgresql_info : Create publication] ************************************ +changed: [testhost] => {"alltables": true, "changed": true, "exists": true, "owner": "postgres", "parameters": {"publish": {"delete": true, "insert": true, "truncate": true, "update": true}}, "queries": ["CREATE PUBLICATION \"second_publication\" FOR ALL TABLES"], "tables": []} + +TASK [postgresql_info : Create test subscription] ****************************** +changed: [testhost] => {"changed": true, "exists": true, "final_state": {"conninfo": {"dbname": "acme_db", "host": "127.0.0.1", "password": "alsdjfKJKDf1#", "port": 5431, "user": "logical_replication"}, "enabled": true, "owner": "postgres", "publications": ["first_publication"], "slotname": "test", "synccommit": true}, "initial_state": {}, "name": "test", "queries": ["CREATE SUBSCRIPTION test CONNECTION 'host=127.0.0.1 port=5431 user=logical_replication password=alsdjfKJKDf1# dbname=acme_db' PUBLICATION first_publication"]} + +TASK [postgresql_info : Create test subscription] ****************************** +changed: [testhost] => {"changed": true, "exists": true, "final_state": {"conninfo": {"dbname": "acme_db", "host": "127.0.0.1", "password": "alsdjfKJKDf1#", "port": 5431, "user": "logical_replication"}, "enabled": true, "owner": "postgres", "publications": ["second_publication"], "slotname": "test2", "synccommit": true}, "initial_state": {}, "name": "test2", "queries": ["CREATE SUBSCRIPTION test2 CONNECTION 'host=127.0.0.1 port=5431 user=logical_replication password=alsdjfKJKDf1# dbname=acme_db' PUBLICATION second_publication"]} + +TASK [postgresql_info : postgresql_info - create role to check session_role] *** +changed: [testhost] => {"changed": true, "queries": ["CREATE USER \"session_superuser\" SUPERUSER"], "user": "session_superuser"} + +TASK [postgresql_info : postgresql_info - create extra DBs for testing] ******** +changed: [testhost] => (item=db1) => {"ansible_loop_var": "item", "changed": true, "db": "db1", "executed_commands": ["CREATE DATABASE \"db1\""], "item": "db1", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=db2) => {"ansible_loop_var": "item", "changed": true, "db": "db2", "executed_commands": ["CREATE DATABASE \"db2\""], "item": "db2", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_info : postgresql_info - create extra schemas for testing] **** +changed: [testhost] => (item=['db1', 'db1_schema1']) => {"ansible_loop_var": "item", "changed": true, "item": ["db1", "db1_schema1"], "queries": ["CREATE SCHEMA \"db1_schema1\""], "schema": "db1_schema1", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db1', 'db1_schema2']) => {"ansible_loop_var": "item", "changed": true, "item": ["db1", "db1_schema2"], "queries": ["CREATE SCHEMA \"db1_schema2\""], "schema": "db1_schema2", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db2', 'db2_schema1']) => {"ansible_loop_var": "item", "changed": true, "item": ["db2", "db2_schema1"], "queries": ["CREATE SCHEMA \"db2_schema1\""], "schema": "db2_schema1", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db2', 'db2_schema2']) => {"ansible_loop_var": "item", "changed": true, "item": ["db2", "db2_schema2"], "queries": ["CREATE SCHEMA \"db2_schema2\""], "schema": "db2_schema2", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_info : postgresql_table - create extra tables for testing] **** +changed: [testhost] => (item=['db1', 'db1_schema1', 'db1_schema1_table1']) => {"ansible_loop_var": "item", "changed": true, "item": ["db1", "db1_schema1", "db1_schema1_table1"], "owner": "postgres", "queries": ["CREATE TABLE \"db1_schema1\".\"db1_schema1_table1\" (waste_id int)"], "state": "present", "storage_params": [], "table": "db1_schema1.db1_schema1_table1", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db1', 'db1_schema1', 'db1_schema1_table2']) => {"ansible_loop_var": "item", "changed": true, "item": ["db1", "db1_schema1", "db1_schema1_table2"], "owner": "postgres", "queries": ["CREATE TABLE \"db1_schema1\".\"db1_schema1_table2\" (waste_id int)"], "state": "present", "storage_params": [], "table": "db1_schema1.db1_schema1_table2", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db1', 'db1_schema2', 'db1_schema2_table1']) => {"ansible_loop_var": "item", "changed": true, "item": ["db1", "db1_schema2", "db1_schema2_table1"], "owner": "postgres", "queries": ["CREATE TABLE \"db1_schema2\".\"db1_schema2_table1\" (waste_id int)"], "state": "present", "storage_params": [], "table": "db1_schema2.db1_schema2_table1", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db1', 'db1_schema2', 'db1_schema2_table2']) => {"ansible_loop_var": "item", "changed": true, "item": ["db1", "db1_schema2", "db1_schema2_table2"], "owner": "postgres", "queries": ["CREATE TABLE \"db1_schema2\".\"db1_schema2_table2\" (waste_id int)"], "state": "present", "storage_params": [], "table": "db1_schema2.db1_schema2_table2", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db2', 'db2_schema1', 'db2_schema1_table1']) => {"ansible_loop_var": "item", "changed": true, "item": ["db2", "db2_schema1", "db2_schema1_table1"], "owner": "postgres", "queries": ["CREATE TABLE \"db2_schema1\".\"db2_schema1_table1\" (waste_id int)"], "state": "present", "storage_params": [], "table": "db2_schema1.db2_schema1_table1", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db2', 'db2_schema1', 'db2_schema1_table2']) => {"ansible_loop_var": "item", "changed": true, "item": ["db2", "db2_schema1", "db2_schema1_table2"], "owner": "postgres", "queries": ["CREATE TABLE \"db2_schema1\".\"db2_schema1_table2\" (waste_id int)"], "state": "present", "storage_params": [], "table": "db2_schema1.db2_schema1_table2", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db2', 'db2_schema2', 'db2_schema2_table1']) => {"ansible_loop_var": "item", "changed": true, "item": ["db2", "db2_schema2", "db2_schema2_table1"], "owner": "postgres", "queries": ["CREATE TABLE \"db2_schema2\".\"db2_schema2_table1\" (waste_id int)"], "state": "present", "storage_params": [], "table": "db2_schema2.db2_schema2_table1", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item=['db2', 'db2_schema2', 'db2_schema2_table2']) => {"ansible_loop_var": "item", "changed": true, "item": ["db2", "db2_schema2", "db2_schema2_table2"], "owner": "postgres", "queries": ["CREATE TABLE \"db2_schema2\".\"db2_schema2_table2\" (waste_id int)"], "state": "present", "storage_params": [], "table": "db2_schema2.db2_schema2_table2", "tablespace": "", "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +TASK [postgresql_info : postgresql_info - test return values and session_role param] *** +ok: [testhost] => {"changed": false, "databases": {"acme_db": {"access_priv": "", "collate": "en_US.UTF-8", "ctype": "en_US.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8758051", "subscriptions": {"test": {"oid": 16389, "ownername": "postgres", "subbinary": false, "subconninfo": "host=127.0.0.1 port=5431 user=logical_replication password=alsdjfKJKDf1# dbname=acme_db", "subdbid": 16384, "subenabled": true, "subowner": 10, "subpublications": ["first_publication"], "subslotname": "test", "substream": false, "subsynccommit": "off"}, "test2": {"oid": 16390, "ownername": "postgres", "subbinary": false, "subconninfo": "host=127.0.0.1 port=5431 user=logical_replication password=alsdjfKJKDf1# dbname=acme_db", "subdbid": 16384, "subenabled": true, "subowner": 10, "subpublications": ["second_publication"], "subslotname": "test2", "substream": false, "subsynccommit": "off"}}}, "db1": {"access_priv": "", "collate": "en_US.UTF-8", "ctype": "en_US.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"db1_schema1": {"nspacl": "", "nspowner": "postgres"}, "db1_schema2": {"nspacl": "", "nspowner": "postgres"}, "information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8741667", "subscriptions": {}}, "db2": {"access_priv": "", "collate": "en_US.UTF-8", "ctype": "en_US.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"db2_schema1": {"nspacl": "", "nspowner": "postgres"}, "db2_schema2": {"nspacl": "", "nspowner": "postgres"}, "information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8741667", "subscriptions": {}}, "postgres": {"access_priv": "", "collate": "en_US.UTF-8", "ctype": "en_US.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8733475", "subscriptions": {}}, "template1": {"access_priv": "=c/postgres\npostgres=CTc/postgres", "collate": "en_US.UTF-8", "ctype": "en_US.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8577539", "subscriptions": {}}}, "in_recovery": false, "pending_restart_settings": [], "repl_slots": {}, "replications": {}, "roles": {"logical_replication": {"canlogin": true, "member_of": [], "superuser": false, "valid_until": ""}, "postgres": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}, "session_superuser": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}}, "settings": {"DateStyle": {"boot_val": "ISO, MDY", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "ISO, MDY", "setting": "ISO, MDY", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "IntervalStyle": {"boot_val": "postgres", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "enum"}, "TimeZone": {"boot_val": "GMT", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "W-SU", "setting": "W-SU", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "allow_in_place_tablespaces": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "allow_system_table_mods": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "application_name": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_cleanup_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "(disabled)", "setting": "(disabled)", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_mode": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "archive_timeout": {"boot_val": "0", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "array_nulls": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "authentication_timeout": {"boot_val": "60", "context": "sighup", "max_val": "600", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "autovacuum_analyze_scale_factor": {"boot_val": "0.1", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_analyze_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_freeze_max_age": {"boot_val": "200000000", "context": "postmaster", "max_val": "2000000000", "min_val": "100000", "pending_restart": false, "pretty_val": "200000000", "setting": "200000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_max_workers": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_multixact_freeze_max_age": {"boot_val": "400000000", "context": "postmaster", "max_val": "2000000000", "min_val": "10000", "pending_restart": false, "pretty_val": "400000000", "setting": "400000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_naptime": {"boot_val": "60", "context": "sighup", "max_val": "2147483", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum_vacuum_cost_delay": {"boot_val": "2", "context": "sighup", "max_val": "100", "min_val": "-1", "pending_restart": false, "pretty_val": "2ms", "setting": "2", "sourcefile": "", "unit": "ms", "vartype": "real"}, "autovacuum_vacuum_cost_limit": {"boot_val": "-1", "context": "sighup", "max_val": "10000", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_insert_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_insert_threshold": {"boot_val": "1000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_work_mem": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "backend_flush_after": {"boot_val": "0", "context": "user", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "8kB", "val_in_bytes": 0, "vartype": "integer"}, "backslash_quote": {"boot_val": "safe_encoding", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "safe_encoding", "setting": "safe_encoding", "sourcefile": "", "unit": "", "vartype": "enum"}, "backtrace_functions": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bgwriter_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "10", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "bgwriter_flush_after": {"boot_val": "64", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "bgwriter_lru_maxpages": {"boot_val": "100", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "bgwriter_lru_multiplier": {"boot_val": "2", "context": "sighup", "max_val": "10", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "bonjour": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "bonjour_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bytea_output": {"boot_val": "hex", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "hex", "setting": "hex", "sourcefile": "", "unit": "", "vartype": "enum"}, "check_function_bodies": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "checkpoint_completion_target": {"boot_val": "0.9", "context": "sighup", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.9", "setting": "0.9", "sourcefile": "", "unit": "", "vartype": "real"}, "checkpoint_flush_after": {"boot_val": "32", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "256kB", "setting": "32", "sourcefile": "", "unit": "8kB", "val_in_bytes": 262144, "vartype": "integer"}, "checkpoint_timeout": {"boot_val": "300", "context": "sighup", "max_val": "86400", "min_val": "30", "pending_restart": false, "pretty_val": "5min", "setting": "300", "sourcefile": "", "unit": "s", "vartype": "integer"}, "checkpoint_warning": {"boot_val": "30", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "30s", "setting": "30", "sourcefile": "", "unit": "s", "vartype": "integer"}, "client_connection_check_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "client_encoding": {"boot_val": "SQL_ASCII", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "client_min_messages": {"boot_val": "notice", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "notice", "setting": "notice", "sourcefile": "", "unit": "", "vartype": "enum"}, "cluster_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "commit_delay": {"boot_val": "0", "context": "superuser", "max_val": "100000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "commit_siblings": {"boot_val": "5", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "compute_query_id": {"boot_val": "auto", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "config_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/pgsql/replica/data/postgresql.conf", "setting": "/var/lib/pgsql/replica/data/postgresql.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "constraint_exclusion": {"boot_val": "partition", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "partition", "setting": "partition", "sourcefile": "", "unit": "", "vartype": "enum"}, "cpu_index_tuple_cost": {"boot_val": "0.005", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.005", "setting": "0.005", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_operator_cost": {"boot_val": "0.0025", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.0025", "setting": "0.0025", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_tuple_cost": {"boot_val": "0.01", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.01", "setting": "0.01", "sourcefile": "", "unit": "", "vartype": "real"}, "cursor_tuple_fraction": {"boot_val": "0.1", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "data_checksums": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "data_directory": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/pgsql/replica/data", "setting": "/var/lib/pgsql/replica/data", "sourcefile": "", "unit": "", "vartype": "string"}, "data_directory_mode": {"boot_val": "448", "context": "internal", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0700", "setting": "0700", "sourcefile": "", "unit": "", "vartype": "integer"}, "data_sync_retry": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "db_user_namespace": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "deadlock_timeout": {"boot_val": "1000", "context": "superuser", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "1s", "setting": "1000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "debug_assertions": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_discard_caches": {"boot_val": "0", "context": "superuser", "max_val": "0", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "debug_pretty_print": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_parse": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_plan": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_rewritten": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_statistics_target": {"boot_val": "100", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "default_table_access_method": {"boot_val": "heap", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "heap", "setting": "heap", "sourcefile": "", "unit": "", "vartype": "string"}, "default_tablespace": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "default_text_search_config": {"boot_val": "pg_catalog.simple", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pg_catalog.english", "setting": "pg_catalog.english", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "default_toast_compression": {"boot_val": "pglz", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pglz", "setting": "pglz", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "dynamic_library_path": {"boot_val": "$libdir", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "$libdir", "setting": "$libdir", "sourcefile": "", "unit": "", "vartype": "string"}, "dynamic_shared_memory_type": {"boot_val": "posix", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "posix", "setting": "posix", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "enum"}, "effective_cache_size": {"boot_val": "524288", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "4GB", "setting": "524288", "sourcefile": "", "unit": "8kB", "val_in_bytes": 4294967296, "vartype": "integer"}, "effective_io_concurrency": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "enable_async_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_bitmapscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_gathermerge": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashagg": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashjoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_incremental_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexonlyscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_material": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_memoize": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_mergejoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_nestloop": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_hash": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partition_pruning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_aggregate": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_join": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_seqscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_tidscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "escape_string_warning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "event_source": {"boot_val": "PostgreSQL", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "PostgreSQL", "setting": "PostgreSQL", "sourcefile": "", "unit": "", "vartype": "string"}, "exit_on_error": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "extension_destdir": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "external_pid_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "extra_float_digits": {"boot_val": "1", "context": "user", "max_val": "3", "min_val": "-15", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "force_parallel_mode": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "from_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "fsync": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "full_page_writes": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo_effort": {"boot_val": "5", "context": "user", "max_val": "10", "min_val": "1", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_generations": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_pool_size": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_seed": {"boot_val": "0", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_selection_bias": {"boot_val": "2", "context": "user", "max_val": "2", "min_val": "1.5", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_threshold": {"boot_val": "12", "context": "user", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "12", "setting": "12", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_fuzzy_search_limit": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_pending_list_limit": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "hash_mem_multiplier": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "1", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "hba_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/pgsql/replica/data/pg_hba.conf", "setting": "/var/lib/pgsql/replica/data/pg_hba.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "hot_standby": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "hot_standby_feedback": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "huge_page_size": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "huge_pages": {"boot_val": "try", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "try", "setting": "try", "sourcefile": "", "unit": "", "vartype": "enum"}, "ident_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/pgsql/replica/data/pg_ident.conf", "setting": "/var/lib/pgsql/replica/data/pg_ident.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "idle_in_transaction_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "idle_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "ignore_checksum_failure": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_invalid_pages": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_system_indexes": {"boot_val": "off", "context": "backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "in_hot_standby": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "integer_datetimes": {"boot_val": "on", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_above_cost": {"boot_val": "100000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "100000", "setting": "100000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_debugging_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_dump_bitcode": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_expressions": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_inline_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_optimize_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_profiling_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_provider": {"boot_val": "llvmjit", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "llvmjit", "setting": "llvmjit", "sourcefile": "", "unit": "", "vartype": "string"}, "jit_tuple_deforming": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "join_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "krb_caseins_users": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "krb_server_keyfile": {"boot_val": "FILE:/etc/postgresql-common/krb5.keytab", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "FILE:/etc/postgresql-common/krb5.keytab", "setting": "FILE:/etc/postgresql-common/krb5.keytab", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_collate": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_ctype": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_messages": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "lc_monetary": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "lc_numeric": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "lc_time": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "listen_addresses": {"boot_val": "localhost", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "*", "setting": "*", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "lo_compat_privileges": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "local_preload_libraries": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "lock_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_autovacuum_min_duration": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_checkpoints": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_connections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_destination": {"boot_val": "stderr", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "stderr", "setting": "stderr", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_directory": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_disconnections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_duration": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_error_verbosity": {"boot_val": "default", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "default", "setting": "default", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_executor_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_file_mode": {"boot_val": "384", "context": "sighup", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0600", "setting": "0600", "sourcefile": "", "unit": "", "vartype": "integer"}, "log_filename": {"boot_val": "postgresql-%Y-%m-%d_%H%M%S.log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgresql-%a.log", "setting": "postgresql-%a.log", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_hostname": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_line_prefix": {"boot_val": "%m [%p] ", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "%m[%p]", "setting": "%m[%p]", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_lock_waits": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_min_duration_sample": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_duration_statement": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_error_statement": {"boot_val": "error", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "error", "setting": "error", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_min_messages": {"boot_val": "warning", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "warning", "setting": "warning", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_parameter_max_length": {"boot_val": "-1", "context": "superuser", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parameter_max_length_on_error": {"boot_val": "0", "context": "user", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parser_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_planner_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_recovery_conflict_waits": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_replication_commands": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_rotation_age": {"boot_val": "1440", "context": "sighup", "max_val": "35791394", "min_val": "0", "pending_restart": false, "pretty_val": "1d", "setting": "1440", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "min", "vartype": "integer"}, "log_rotation_size": {"boot_val": "10240", "context": "sighup", "max_val": "2097151", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "log_statement": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_statement_sample_rate": {"boot_val": "1", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "log_statement_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_temp_files": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "log_timezone": {"boot_val": "GMT", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "W-SU", "setting": "W-SU", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_transaction_sample_rate": {"boot_val": "0", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "log_truncate_on_rotation": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "bool"}, "logging_collector": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "bool"}, "logical_decoding_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "maintenance_io_concurrency": {"boot_val": "10", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "maintenance_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "1024", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "max_connections": {"boot_val": "100", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "integer"}, "max_files_per_process": {"boot_val": "1000", "context": "postmaster", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_function_args": {"boot_val": "100", "context": "internal", "max_val": "100", "min_val": "100", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_identifier_length": {"boot_val": "63", "context": "internal", "max_val": "63", "min_val": "63", "pending_restart": false, "pretty_val": "63", "setting": "63", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_index_keys": {"boot_val": "32", "context": "internal", "max_val": "32", "min_val": "32", "pending_restart": false, "pretty_val": "32", "setting": "32", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_logical_replication_workers": {"boot_val": "4", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_maintenance_workers": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers": {"boot_val": "8", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers_per_gather": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_page": {"boot_val": "2", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_relation": {"boot_val": "-2", "context": "sighup", "max_val": "2147483647", "min_val": "-2147483648", "pending_restart": false, "pretty_val": "-2", "setting": "-2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_prepared_transactions": {"boot_val": "0", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_replication_slots": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "integer"}, "max_slot_wal_keep_size": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "max_stack_depth": {"boot_val": "100", "context": "superuser", "max_val": "2147483647", "min_val": "100", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "max_standby_archive_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_standby_streaming_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_sync_workers_per_subscription": {"boot_val": "2", "context": "sighup", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_wal_senders": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "integer"}, "max_wal_size": {"boot_val": "1024", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "1GB", "setting": "1024", "sourcefile": "", "unit": "MB", "val_in_bytes": 1073741824, "vartype": "integer"}, "max_worker_processes": {"boot_val": "8", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "min_dynamic_shared_memory": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "min_parallel_index_scan_size": {"boot_val": "64", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "min_parallel_table_scan_size": {"boot_val": "1024", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "min_wal_size": {"boot_val": "80", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "80MB", "setting": "80", "sourcefile": "", "unit": "MB", "val_in_bytes": 83886080, "vartype": "integer"}, "old_snapshot_threshold": {"boot_val": "-1", "context": "postmaster", "max_val": "86400", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "min", "vartype": "integer"}, "parallel_leader_participation": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "parallel_setup_cost": {"boot_val": "1000", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "real"}, "parallel_tuple_cost": {"boot_val": "0.1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "password_encryption": {"boot_val": "scram-sha-256", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "scram-sha-256", "setting": "scram-sha-256", "sourcefile": "", "unit": "", "vartype": "enum"}, "plan_cache_mode": {"boot_val": "auto", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "port": {"boot_val": "5432", "context": "postmaster", "max_val": "65535", "min_val": "1", "pending_restart": false, "pretty_val": "5434", "setting": "5434", "sourcefile": "", "unit": "", "vartype": "integer"}, "post_auth_delay": {"boot_val": "0", "context": "backend", "max_val": "2147", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "pre_auth_delay": {"boot_val": "0", "context": "sighup", "max_val": "60", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "primary_conninfo": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "primary_slot_name": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "promote_trigger_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "quote_all_identifiers": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "random_page_cost": {"boot_val": "4", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "real"}, "recovery_end_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_init_sync_method": {"boot_val": "fsync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fsync", "setting": "fsync", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_min_apply_delay": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "recovery_target": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_action": {"boot_val": "pause", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pause", "setting": "pause", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_target_inclusive": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "recovery_target_lsn": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_time": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_timeline": {"boot_val": "latest", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "latest", "setting": "latest", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_xid": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "remove_temp_files_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restart_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restore_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "row_security": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "search_path": {"boot_val": "\"$user\", public", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "\"$user\", public", "setting": "\"$user\", public", "sourcefile": "", "unit": "", "vartype": "string"}, "segment_size": {"boot_val": "131072", "context": "internal", "max_val": "131072", "min_val": "131072", "pending_restart": false, "pretty_val": "1GB", "setting": "131072", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1073741824, "vartype": "integer"}, "seq_page_cost": {"boot_val": "1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "server_encoding": {"boot_val": "SQL_ASCII", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version": {"boot_val": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "setting": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version_num": {"boot_val": "140006", "context": "internal", "max_val": "140006", "min_val": "140006", "pending_restart": false, "pretty_val": "140006", "setting": "140006", "sourcefile": "", "unit": "", "vartype": "integer"}, "session_preload_libraries": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "session_replication_role": {"boot_val": "origin", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "origin", "setting": "origin", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_buffers": {"boot_val": "1024", "context": "postmaster", "max_val": "1073741823", "min_val": "16", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "shared_memory_type": {"boot_val": "mmap", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "mmap", "setting": "mmap", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_preload_libraries": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ssl_ca_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_cert_file": {"boot_val": "server.crt", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "server.crt", "setting": "server.crt", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_ciphers": {"boot_val": "HIGH:MEDIUM:+3DES:!aNULL", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "HIGH:MEDIUM:+3DES:!aNULL", "setting": "HIGH:MEDIUM:+3DES:!aNULL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_dir": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_dh_params_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_ecdh_curve": {"boot_val": "prime256v1", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "prime256v1", "setting": "prime256v1", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_key_file": {"boot_val": "server.key", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "server.key", "setting": "server.key", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_library": {"boot_val": "OpenSSL", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "OpenSSL", "setting": "OpenSSL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_max_protocol_version": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_min_protocol_version": {"boot_val": "TLSv1.2", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "TLSv1.2", "setting": "TLSv1.2", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_passphrase_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_passphrase_command_supports_reload": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ssl_prefer_server_ciphers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "standard_conforming_strings": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "statement_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "stats_temp_directory": {"boot_val": "pg_stat_tmp", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pg_stat_tmp", "setting": "pg_stat_tmp", "sourcefile": "", "unit": "", "vartype": "string"}, "superuser_reserved_connections": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "synchronize_seqscans": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "synchronous_commit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "enum"}, "synchronous_standby_names": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_facility": {"boot_val": "local0", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "local0", "setting": "local0", "sourcefile": "", "unit": "", "vartype": "enum"}, "syslog_ident": {"boot_val": "postgres", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_sequence_numbers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "syslog_split_messages": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "tcp_keepalives_count": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "tcp_keepalives_idle": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_keepalives_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_user_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "temp_buffers": {"boot_val": "1024", "context": "user", "max_val": "1073741823", "min_val": "100", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "temp_file_limit": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "temp_tablespaces": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "timezone_abbreviations": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Default", "setting": "Default", "sourcefile": "", "unit": "", "vartype": "string"}, "trace_notify": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "trace_recovery_messages": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "", "unit": "", "vartype": "enum"}, "trace_sort": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activities": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activity_query_size": {"boot_val": "1024", "context": "postmaster", "max_val": "1048576", "min_val": "100", "pending_restart": false, "pretty_val": "1kB", "setting": "1024", "sourcefile": "", "unit": "B", "vartype": "integer"}, "track_commit_timestamp": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "bool"}, "track_counts": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_functions": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "track_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_wal_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transform_null_equals": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "unix_socket_directories": {"boot_val": "/var/run/postgresql", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql", "setting": "/var/run/postgresql", "sourcefile": "", "unit": "", "vartype": "string"}, "unix_socket_group": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "unix_socket_permissions": {"boot_val": "511", "context": "postmaster", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0777", "setting": "0777", "sourcefile": "", "unit": "", "vartype": "integer"}, "update_process_title": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "vacuum_cost_delay": {"boot_val": "0", "context": "user", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "real"}, "vacuum_cost_limit": {"boot_val": "200", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200", "setting": "200", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_dirty": {"boot_val": "20", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "20", "setting": "20", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_hit": {"boot_val": "1", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_miss": {"boot_val": "2", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_defer_cleanup_age": {"boot_val": "0", "context": "sighup", "max_val": "1000000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_min_age": {"boot_val": "50000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "50000000", "setting": "50000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_min_age": {"boot_val": "5000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "5000000", "setting": "5000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_buffers": {"boot_val": "-1", "context": "postmaster", "max_val": "262143", "min_val": "-1", "pending_restart": false, "pretty_val": "256kB", "setting": "32", "sourcefile": "", "unit": "8kB", "val_in_bytes": 262144, "vartype": "integer"}, "wal_compression": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_consistency_checking": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "wal_init_zero": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_keep_size": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "wal_level": {"boot_val": "replica", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "logical", "setting": "logical", "sourcefile": "/var/lib/pgsql/replica/data/postgresql.conf", "unit": "", "vartype": "enum"}, "wal_log_hints": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_create_temp_slot": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_status_interval": {"boot_val": "10", "context": "sighup", "max_val": "2147483", "min_val": "0", "pending_restart": false, "pretty_val": "10s", "setting": "10", "sourcefile": "", "unit": "s", "vartype": "integer"}, "wal_receiver_timeout": {"boot_val": "60000", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_recycle": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_retrieve_retry_interval": {"boot_val": "5000", "context": "sighup", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "5s", "setting": "5000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_segment_size": {"boot_val": "16777216", "context": "internal", "max_val": "1073741824", "min_val": "1048576", "pending_restart": false, "pretty_val": "16MB", "setting": "16777216", "sourcefile": "", "unit": "B", "vartype": "integer"}, "wal_sender_timeout": {"boot_val": "60000", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_skip_threshold": {"boot_val": "2048", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "wal_sync_method": {"boot_val": "fdatasync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fdatasync", "setting": "fdatasync", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_writer_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_writer_flush_after": {"boot_val": "128", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1MB", "setting": "128", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1048576, "vartype": "integer"}, "work_mem": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "xmlbinary": {"boot_val": "base64", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "base64", "setting": "base64", "sourcefile": "", "unit": "", "vartype": "enum"}, "xmloption": {"boot_val": "content", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "content", "setting": "content", "sourcefile": "", "unit": "", "vartype": "enum"}, "zero_damaged_pages": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}}, "tablespaces": {"pg_default": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}, "pg_global": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}}, "version": {"full": "14.6", "major": 14, "minor": 6, "raw": "PostgreSQL 14.6 (Ubuntu 14.6-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [postgresql_info : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_info : assert] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [postgresql_info : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_info : postgresql_info - check filter param passed by list] *** +ok: [testhost] => {"changed": false, "databases": {}, "in_recovery": false, "pending_restart_settings": [], "repl_slots": {}, "replications": {}, "roles": {"logical_replication": {"canlogin": true, "member_of": [], "superuser": false, "valid_until": ""}, "postgres": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}, "session_superuser": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}}, "settings": {}, "tablespaces": {}, "version": {"full": "14.6", "major": 14, "minor": 6, "raw": "PostgreSQL 14.6 (Ubuntu 14.6-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [postgresql_info : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_info : postgresql_info - check filter param passed by string] *** +ok: [testhost] => {"changed": false, "databases": {}, "in_recovery": null, "pending_restart_settings": [], "repl_slots": {}, "replications": {}, "roles": {"postgres": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}}, "settings": {}, "tablespaces": {}, "version": {"full": "15.1", "major": 15, "minor": 1, "raw": "PostgreSQL 15.1 (Ubuntu 15.1-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [postgresql_info : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_info : postgresql_info - check filter param passed by string] *** +ok: [testhost] => {"changed": false, "databases": {}, "in_recovery": null, "pending_restart_settings": [], "repl_slots": {}, "replications": {}, "roles": {}, "settings": {}, "tablespaces": {}, "version": {"full": "15.1", "major": 15, "minor": 1, "raw": "PostgreSQL 15.1 (Ubuntu 15.1-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [postgresql_info : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_info : postgresql_info - check excluding filter param passed by list] *** +ok: [testhost] => {"changed": false, "databases": {"postgres": {"access_priv": "", "collate": "C.UTF-8", "ctype": "C.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{pg_database_owner=UC/pg_database_owner,=U/pg_database_owner}", "nspowner": "pg_database_owner"}}, "owner": "postgres", "publications": {}, "size": "7623471", "subscriptions": {}}, "template1": {"access_priv": "=c/postgres\npostgres=CTc/postgres", "collate": "C.UTF-8", "ctype": "C.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{pg_database_owner=UC/pg_database_owner,=U/pg_database_owner}", "nspowner": "pg_database_owner"}}, "owner": "postgres", "publications": {}, "size": "7623471", "subscriptions": {}}}, "in_recovery": null, "pending_restart_settings": [], "repl_slots": {}, "replications": {}, "roles": {}, "settings": {"DateStyle": {"boot_val": "ISO, MDY", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "ISO, MDY", "setting": "ISO, MDY", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "IntervalStyle": {"boot_val": "postgres", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "enum"}, "TimeZone": {"boot_val": "GMT", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Etc/UTC", "setting": "Etc/UTC", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "allow_in_place_tablespaces": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "allow_system_table_mods": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "application_name": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_cleanup_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "(disabled)", "setting": "(disabled)", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_library": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_mode": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "archive_timeout": {"boot_val": "0", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "array_nulls": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "authentication_timeout": {"boot_val": "60", "context": "sighup", "max_val": "600", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "autovacuum_analyze_scale_factor": {"boot_val": "0.1", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_analyze_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_freeze_max_age": {"boot_val": "200000000", "context": "postmaster", "max_val": "2000000000", "min_val": "100000", "pending_restart": false, "pretty_val": "200000000", "setting": "200000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_max_workers": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_multixact_freeze_max_age": {"boot_val": "400000000", "context": "postmaster", "max_val": "2000000000", "min_val": "10000", "pending_restart": false, "pretty_val": "400000000", "setting": "400000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_naptime": {"boot_val": "60", "context": "sighup", "max_val": "2147483", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum_vacuum_cost_delay": {"boot_val": "2", "context": "sighup", "max_val": "100", "min_val": "-1", "pending_restart": false, "pretty_val": "2ms", "setting": "2", "sourcefile": "", "unit": "ms", "vartype": "real"}, "autovacuum_vacuum_cost_limit": {"boot_val": "-1", "context": "sighup", "max_val": "10000", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_insert_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_insert_threshold": {"boot_val": "1000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_work_mem": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "backend_flush_after": {"boot_val": "0", "context": "user", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "8kB", "val_in_bytes": 0, "vartype": "integer"}, "backslash_quote": {"boot_val": "safe_encoding", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "safe_encoding", "setting": "safe_encoding", "sourcefile": "", "unit": "", "vartype": "enum"}, "backtrace_functions": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bgwriter_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "10", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "bgwriter_flush_after": {"boot_val": "64", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "bgwriter_lru_maxpages": {"boot_val": "100", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "bgwriter_lru_multiplier": {"boot_val": "2", "context": "sighup", "max_val": "10", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "bonjour": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "bonjour_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bytea_output": {"boot_val": "hex", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "hex", "setting": "hex", "sourcefile": "", "unit": "", "vartype": "enum"}, "check_function_bodies": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "checkpoint_completion_target": {"boot_val": "0.9", "context": "sighup", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.9", "setting": "0.9", "sourcefile": "", "unit": "", "vartype": "real"}, "checkpoint_flush_after": {"boot_val": "32", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "256kB", "setting": "32", "sourcefile": "", "unit": "8kB", "val_in_bytes": 262144, "vartype": "integer"}, "checkpoint_timeout": {"boot_val": "300", "context": "sighup", "max_val": "86400", "min_val": "30", "pending_restart": false, "pretty_val": "5min", "setting": "300", "sourcefile": "", "unit": "s", "vartype": "integer"}, "checkpoint_warning": {"boot_val": "30", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "30s", "setting": "30", "sourcefile": "", "unit": "s", "vartype": "integer"}, "client_connection_check_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "client_encoding": {"boot_val": "SQL_ASCII", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "client_min_messages": {"boot_val": "notice", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "notice", "setting": "notice", "sourcefile": "", "unit": "", "vartype": "enum"}, "cluster_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "15/main", "setting": "15/main", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "commit_delay": {"boot_val": "0", "context": "superuser", "max_val": "100000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "commit_siblings": {"boot_val": "5", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "compute_query_id": {"boot_val": "auto", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "config_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/15/main/postgresql.conf", "setting": "/etc/postgresql/15/main/postgresql.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "constraint_exclusion": {"boot_val": "partition", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "partition", "setting": "partition", "sourcefile": "", "unit": "", "vartype": "enum"}, "cpu_index_tuple_cost": {"boot_val": "0.005", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.005", "setting": "0.005", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_operator_cost": {"boot_val": "0.0025", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.0025", "setting": "0.0025", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_tuple_cost": {"boot_val": "0.01", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.01", "setting": "0.01", "sourcefile": "", "unit": "", "vartype": "real"}, "cursor_tuple_fraction": {"boot_val": "0.1", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "data_checksums": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "data_directory": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/postgresql/15/main", "setting": "/var/lib/postgresql/15/main", "sourcefile": "", "unit": "", "vartype": "string"}, "data_directory_mode": {"boot_val": "448", "context": "internal", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0700", "setting": "0700", "sourcefile": "", "unit": "", "vartype": "integer"}, "data_sync_retry": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "db_user_namespace": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "deadlock_timeout": {"boot_val": "1000", "context": "superuser", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "1s", "setting": "1000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "debug_assertions": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_discard_caches": {"boot_val": "0", "context": "superuser", "max_val": "0", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "debug_pretty_print": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_parse": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_plan": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_rewritten": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_statistics_target": {"boot_val": "100", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "default_table_access_method": {"boot_val": "heap", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "heap", "setting": "heap", "sourcefile": "", "unit": "", "vartype": "string"}, "default_tablespace": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "default_text_search_config": {"boot_val": "pg_catalog.simple", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pg_catalog.english", "setting": "pg_catalog.english", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "default_toast_compression": {"boot_val": "pglz", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pglz", "setting": "pglz", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "dynamic_library_path": {"boot_val": "$libdir", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "$libdir", "setting": "$libdir", "sourcefile": "", "unit": "", "vartype": "string"}, "dynamic_shared_memory_type": {"boot_val": "posix", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "posix", "setting": "posix", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "enum"}, "effective_cache_size": {"boot_val": "524288", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "4GB", "setting": "524288", "sourcefile": "", "unit": "8kB", "val_in_bytes": 4294967296, "vartype": "integer"}, "effective_io_concurrency": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "enable_async_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_bitmapscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_gathermerge": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashagg": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashjoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_incremental_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexonlyscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_material": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_memoize": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_mergejoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_nestloop": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_hash": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partition_pruning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_aggregate": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_join": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_seqscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_tidscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "escape_string_warning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "event_source": {"boot_val": "PostgreSQL", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "PostgreSQL", "setting": "PostgreSQL", "sourcefile": "", "unit": "", "vartype": "string"}, "exit_on_error": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "extension_destdir": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "external_pid_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql/15-main.pid", "setting": "/var/run/postgresql/15-main.pid", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "extra_float_digits": {"boot_val": "1", "context": "user", "max_val": "3", "min_val": "-15", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "force_parallel_mode": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "from_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "fsync": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "full_page_writes": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo_effort": {"boot_val": "5", "context": "user", "max_val": "10", "min_val": "1", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_generations": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_pool_size": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_seed": {"boot_val": "0", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_selection_bias": {"boot_val": "2", "context": "user", "max_val": "2", "min_val": "1.5", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_threshold": {"boot_val": "12", "context": "user", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "12", "setting": "12", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_fuzzy_search_limit": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_pending_list_limit": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "hash_mem_multiplier": {"boot_val": "2", "context": "user", "max_val": "1000", "min_val": "1", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "hba_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/15/main/pg_hba.conf", "setting": "/etc/postgresql/15/main/pg_hba.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "hot_standby": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "hot_standby_feedback": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "huge_page_size": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "huge_pages": {"boot_val": "try", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "try", "setting": "try", "sourcefile": "", "unit": "", "vartype": "enum"}, "ident_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/postgresql/15/main/pg_ident.conf", "setting": "/etc/postgresql/15/main/pg_ident.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "idle_in_transaction_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "idle_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "ignore_checksum_failure": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_invalid_pages": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_system_indexes": {"boot_val": "off", "context": "backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "in_hot_standby": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "integer_datetimes": {"boot_val": "on", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_above_cost": {"boot_val": "100000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "100000", "setting": "100000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_debugging_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_dump_bitcode": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_expressions": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_inline_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_optimize_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_profiling_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_provider": {"boot_val": "llvmjit", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "llvmjit", "setting": "llvmjit", "sourcefile": "", "unit": "", "vartype": "string"}, "jit_tuple_deforming": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "join_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "krb_caseins_users": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "krb_server_keyfile": {"boot_val": "FILE:/etc/postgresql-common/krb5.keytab", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "FILE:/etc/postgresql-common/krb5.keytab", "setting": "FILE:/etc/postgresql-common/krb5.keytab", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_collate": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_ctype": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_messages": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_monetary": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_numeric": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "lc_time": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "C.UTF-8", "setting": "C.UTF-8", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "listen_addresses": {"boot_val": "localhost", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "localhost", "setting": "localhost", "sourcefile": "", "unit": "", "vartype": "string"}, "lo_compat_privileges": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "local_preload_libraries": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "lock_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_autovacuum_min_duration": {"boot_val": "600000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "10min", "setting": "600000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_checkpoints": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_connections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_destination": {"boot_val": "stderr", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "stderr", "setting": "stderr", "sourcefile": "", "unit": "", "vartype": "string"}, "log_directory": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "", "unit": "", "vartype": "string"}, "log_disconnections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_duration": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_error_verbosity": {"boot_val": "default", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "default", "setting": "default", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_executor_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_file_mode": {"boot_val": "384", "context": "sighup", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0600", "setting": "0600", "sourcefile": "", "unit": "", "vartype": "integer"}, "log_filename": {"boot_val": "postgresql-%Y-%m-%d_%H%M%S.log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgresql-%Y-%m-%d_%H%M%S.log", "setting": "postgresql-%Y-%m-%d_%H%M%S.log", "sourcefile": "", "unit": "", "vartype": "string"}, "log_hostname": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_line_prefix": {"boot_val": "%m [%p] ", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "%m [%p] %q%u@%d ", "setting": "%m [%p] %q%u@%d ", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "log_lock_waits": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_min_duration_sample": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_duration_statement": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_error_statement": {"boot_val": "error", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "error", "setting": "error", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_min_messages": {"boot_val": "warning", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "warning", "setting": "warning", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_parameter_max_length": {"boot_val": "-1", "context": "superuser", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parameter_max_length_on_error": {"boot_val": "0", "context": "user", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parser_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_planner_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_recovery_conflict_waits": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_replication_commands": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_rotation_age": {"boot_val": "1440", "context": "sighup", "max_val": "35791394", "min_val": "0", "pending_restart": false, "pretty_val": "1d", "setting": "1440", "sourcefile": "", "unit": "min", "vartype": "integer"}, "log_rotation_size": {"boot_val": "10240", "context": "sighup", "max_val": "2097151", "min_val": "0", "pending_restart": false, "pretty_val": "10MB", "setting": "10240", "sourcefile": "", "unit": "kB", "val_in_bytes": 10485760, "vartype": "integer"}, "log_startup_progress_interval": {"boot_val": "10000", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "10s", "setting": "10000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_statement": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_statement_sample_rate": {"boot_val": "1", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "log_statement_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_temp_files": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "log_timezone": {"boot_val": "GMT", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Etc/UTC", "setting": "Etc/UTC", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "log_transaction_sample_rate": {"boot_val": "0", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "log_truncate_on_rotation": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "logging_collector": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "logical_decoding_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "maintenance_io_concurrency": {"boot_val": "10", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "maintenance_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "1024", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "max_connections": {"boot_val": "100", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "integer"}, "max_files_per_process": {"boot_val": "1000", "context": "postmaster", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_function_args": {"boot_val": "100", "context": "internal", "max_val": "100", "min_val": "100", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_identifier_length": {"boot_val": "63", "context": "internal", "max_val": "63", "min_val": "63", "pending_restart": false, "pretty_val": "63", "setting": "63", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_index_keys": {"boot_val": "32", "context": "internal", "max_val": "32", "min_val": "32", "pending_restart": false, "pretty_val": "32", "setting": "32", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_logical_replication_workers": {"boot_val": "4", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_maintenance_workers": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers": {"boot_val": "8", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers_per_gather": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_page": {"boot_val": "2", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_relation": {"boot_val": "-2", "context": "sighup", "max_val": "2147483647", "min_val": "-2147483648", "pending_restart": false, "pretty_val": "-2", "setting": "-2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_prepared_transactions": {"boot_val": "0", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_replication_slots": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_slot_wal_keep_size": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "max_stack_depth": {"boot_val": "100", "context": "superuser", "max_val": "2147483647", "min_val": "100", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "max_standby_archive_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_standby_streaming_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_sync_workers_per_subscription": {"boot_val": "2", "context": "sighup", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_wal_senders": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_wal_size": {"boot_val": "1024", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "1GB", "setting": "1024", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "MB", "val_in_bytes": 1073741824, "vartype": "integer"}, "max_worker_processes": {"boot_val": "8", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "min_dynamic_shared_memory": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "min_parallel_index_scan_size": {"boot_val": "64", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "min_parallel_table_scan_size": {"boot_val": "1024", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "min_wal_size": {"boot_val": "80", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "80MB", "setting": "80", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "MB", "val_in_bytes": 83886080, "vartype": "integer"}, "old_snapshot_threshold": {"boot_val": "-1", "context": "postmaster", "max_val": "86400", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "min", "vartype": "integer"}, "parallel_leader_participation": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "parallel_setup_cost": {"boot_val": "1000", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "real"}, "parallel_tuple_cost": {"boot_val": "0.1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "password_encryption": {"boot_val": "scram-sha-256", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "scram-sha-256", "setting": "scram-sha-256", "sourcefile": "", "unit": "", "vartype": "enum"}, "plan_cache_mode": {"boot_val": "auto", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "port": {"boot_val": "5432", "context": "postmaster", "max_val": "65535", "min_val": "1", "pending_restart": false, "pretty_val": "5432", "setting": "5432", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "integer"}, "post_auth_delay": {"boot_val": "0", "context": "backend", "max_val": "2147", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "pre_auth_delay": {"boot_val": "0", "context": "sighup", "max_val": "60", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "primary_conninfo": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "primary_slot_name": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "promote_trigger_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "quote_all_identifiers": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "random_page_cost": {"boot_val": "4", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "real"}, "recovery_end_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_init_sync_method": {"boot_val": "fsync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fsync", "setting": "fsync", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_min_apply_delay": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "recovery_prefetch": {"boot_val": "try", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "try", "setting": "try", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_target": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_action": {"boot_val": "pause", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pause", "setting": "pause", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_target_inclusive": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "recovery_target_lsn": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_time": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_timeline": {"boot_val": "latest", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "latest", "setting": "latest", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_xid": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recursive_worktable_factor": {"boot_val": "10", "context": "user", "max_val": "1e+06", "min_val": "0.001", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "real"}, "remove_temp_files_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restart_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restore_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "row_security": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "search_path": {"boot_val": "\"$user\", public", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "\"$user\", public", "setting": "\"$user\", public", "sourcefile": "", "unit": "", "vartype": "string"}, "segment_size": {"boot_val": "131072", "context": "internal", "max_val": "131072", "min_val": "131072", "pending_restart": false, "pretty_val": "1GB", "setting": "131072", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1073741824, "vartype": "integer"}, "seq_page_cost": {"boot_val": "1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "server_encoding": {"boot_val": "SQL_ASCII", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version": {"boot_val": "15.1 (Ubuntu 15.1-1.pgdg20.04+1)", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "15.1 (Ubuntu 15.1-1.pgdg20.04+1)", "setting": "15.1 (Ubuntu 15.1-1.pgdg20.04+1)", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version_num": {"boot_val": "150001", "context": "internal", "max_val": "150001", "min_val": "150001", "pending_restart": false, "pretty_val": "150001", "setting": "150001", "sourcefile": "", "unit": "", "vartype": "integer"}, "session_preload_libraries": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "session_replication_role": {"boot_val": "origin", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "origin", "setting": "origin", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_buffers": {"boot_val": "16384", "context": "postmaster", "max_val": "1073741823", "min_val": "16", "pending_restart": false, "pretty_val": "128MB", "setting": "16384", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "8kB", "val_in_bytes": 134217728, "vartype": "integer"}, "shared_memory_size": {"boot_val": "0", "context": "internal", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "143MB", "setting": "143", "sourcefile": "", "unit": "MB", "val_in_bytes": 149946368, "vartype": "integer"}, "shared_memory_size_in_huge_pages": {"boot_val": "-1", "context": "internal", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "72", "setting": "72", "sourcefile": "", "unit": "", "vartype": "integer"}, "shared_memory_type": {"boot_val": "mmap", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "mmap", "setting": "mmap", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_preload_libraries": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "bool"}, "ssl_ca_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_cert_file": {"boot_val": "server.crt", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/ssl/certs/ssl-cert-snakeoil.pem", "setting": "/etc/ssl/certs/ssl-cert-snakeoil.pem", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "ssl_ciphers": {"boot_val": "HIGH:MEDIUM:+3DES:!aNULL", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "HIGH:MEDIUM:+3DES:!aNULL", "setting": "HIGH:MEDIUM:+3DES:!aNULL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_dir": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_dh_params_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_ecdh_curve": {"boot_val": "prime256v1", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "prime256v1", "setting": "prime256v1", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_key_file": {"boot_val": "server.key", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/etc/ssl/private/ssl-cert-snakeoil.key", "setting": "/etc/ssl/private/ssl-cert-snakeoil.key", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "ssl_library": {"boot_val": "OpenSSL", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "OpenSSL", "setting": "OpenSSL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_max_protocol_version": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_min_protocol_version": {"boot_val": "TLSv1.2", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "TLSv1.2", "setting": "TLSv1.2", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_passphrase_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_passphrase_command_supports_reload": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ssl_prefer_server_ciphers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "standard_conforming_strings": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "statement_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "stats_fetch_consistency": {"boot_val": "cache", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "cache", "setting": "cache", "sourcefile": "", "unit": "", "vartype": "enum"}, "superuser_reserved_connections": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "synchronize_seqscans": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "synchronous_commit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "enum"}, "synchronous_standby_names": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_facility": {"boot_val": "local0", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "local0", "setting": "local0", "sourcefile": "", "unit": "", "vartype": "enum"}, "syslog_ident": {"boot_val": "postgres", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_sequence_numbers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "syslog_split_messages": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "tcp_keepalives_count": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "tcp_keepalives_idle": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_keepalives_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_user_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "temp_buffers": {"boot_val": "1024", "context": "user", "max_val": "1073741823", "min_val": "100", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "temp_file_limit": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "temp_tablespaces": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "timezone_abbreviations": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Default", "setting": "Default", "sourcefile": "", "unit": "", "vartype": "string"}, "trace_notify": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "trace_recovery_messages": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "", "unit": "", "vartype": "enum"}, "trace_sort": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activities": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activity_query_size": {"boot_val": "1024", "context": "postmaster", "max_val": "1048576", "min_val": "100", "pending_restart": false, "pretty_val": "1kB", "setting": "1024", "sourcefile": "", "unit": "B", "vartype": "integer"}, "track_commit_timestamp": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_counts": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_functions": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "track_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_wal_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transform_null_equals": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "unix_socket_directories": {"boot_val": "/var/run/postgresql", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql", "setting": "/var/run/postgresql", "sourcefile": "/etc/postgresql/15/main/postgresql.conf", "unit": "", "vartype": "string"}, "unix_socket_group": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "unix_socket_permissions": {"boot_val": "511", "context": "postmaster", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0777", "setting": "0777", "sourcefile": "", "unit": "", "vartype": "integer"}, "update_process_title": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "vacuum_cost_delay": {"boot_val": "0", "context": "user", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "real"}, "vacuum_cost_limit": {"boot_val": "200", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200", "setting": "200", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_dirty": {"boot_val": "20", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "20", "setting": "20", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_hit": {"boot_val": "1", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_miss": {"boot_val": "2", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_defer_cleanup_age": {"boot_val": "0", "context": "sighup", "max_val": "1000000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_min_age": {"boot_val": "50000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "50000000", "setting": "50000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_min_age": {"boot_val": "5000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "5000000", "setting": "5000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_buffers": {"boot_val": "-1", "context": "postmaster", "max_val": "262143", "min_val": "-1", "pending_restart": false, "pretty_val": "4MB", "setting": "512", "sourcefile": "", "unit": "8kB", "val_in_bytes": 4194304, "vartype": "integer"}, "wal_compression": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_consistency_checking": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "wal_decode_buffer_size": {"boot_val": "524288", "context": "postmaster", "max_val": "1073741823", "min_val": "65536", "pending_restart": false, "pretty_val": "512kB", "setting": "524288", "sourcefile": "", "unit": "B", "vartype": "integer"}, "wal_init_zero": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_keep_size": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "wal_level": {"boot_val": "replica", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "replica", "setting": "replica", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_log_hints": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_create_temp_slot": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_status_interval": {"boot_val": "10", "context": "sighup", "max_val": "2147483", "min_val": "0", "pending_restart": false, "pretty_val": "10s", "setting": "10", "sourcefile": "", "unit": "s", "vartype": "integer"}, "wal_receiver_timeout": {"boot_val": "60000", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_recycle": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_retrieve_retry_interval": {"boot_val": "5000", "context": "sighup", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "5s", "setting": "5000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_segment_size": {"boot_val": "16777216", "context": "internal", "max_val": "1073741824", "min_val": "1048576", "pending_restart": false, "pretty_val": "16MB", "setting": "16777216", "sourcefile": "", "unit": "B", "vartype": "integer"}, "wal_sender_timeout": {"boot_val": "60000", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_skip_threshold": {"boot_val": "2048", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "wal_sync_method": {"boot_val": "fdatasync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fdatasync", "setting": "fdatasync", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_writer_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_writer_flush_after": {"boot_val": "128", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1MB", "setting": "128", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1048576, "vartype": "integer"}, "work_mem": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "xmlbinary": {"boot_val": "base64", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "base64", "setting": "base64", "sourcefile": "", "unit": "", "vartype": "enum"}, "xmloption": {"boot_val": "content", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "content", "setting": "content", "sourcefile": "", "unit": "", "vartype": "enum"}, "zero_damaged_pages": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}}, "tablespaces": {"pg_default": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}, "pg_global": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}}, "version": {}} + +TASK [postgresql_info : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_info : postgresql_info - test return publication info] ******** +ok: [testhost] => {"changed": false, "databases": {"acme_db": {"access_priv": "", "collate": "en_US.UTF-8", "ctype": "en_US.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {"first_publication": {"oid": 16389, "ownername": "postgres", "puballtables": true, "pubdelete": true, "pubinsert": true, "pubowner": 10, "pubtruncate": true, "pubupdate": true, "pubviaroot": false}, "second_publication": {"oid": 16390, "ownername": "postgres", "puballtables": true, "pubdelete": true, "pubinsert": true, "pubowner": 10, "pubtruncate": true, "pubupdate": true, "pubviaroot": false}}, "size": "8766243", "subscriptions": {}}, "postgres": {"access_priv": "", "collate": "en_US.UTF-8", "ctype": "en_US.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8733475", "subscriptions": {}}, "template1": {"access_priv": "=c/postgres\npostgres=CTc/postgres", "collate": "en_US.UTF-8", "ctype": "en_US.UTF-8", "encoding": "UTF8", "extensions": {"plpgsql": {"description": "PL/pgSQL procedural language", "extversion": {"major": 1, "minor": 0, "raw": "1.0"}, "nspname": "pg_catalog"}}, "languages": {"c": {"lanacl": "", "lanowner": "postgres"}, "internal": {"lanacl": "", "lanowner": "postgres"}, "plpgsql": {"lanacl": "", "lanowner": "postgres"}, "sql": {"lanacl": "", "lanowner": "postgres"}}, "namespaces": {"information_schema": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_catalog": {"nspacl": "{postgres=UC/postgres,=U/postgres}", "nspowner": "postgres"}, "pg_toast": {"nspacl": "", "nspowner": "postgres"}, "public": {"nspacl": "{postgres=UC/postgres,=UC/postgres}", "nspowner": "postgres"}}, "owner": "postgres", "publications": {}, "size": "8577539", "subscriptions": {}}}, "in_recovery": false, "pending_restart_settings": [], "repl_slots": {"pg_16389_sync_16386_7171377526356926174": {"active": false, "database": "acme_db", "plugin": "pgoutput", "slot_type": "logical"}, "pg_16390_sync_16386_7171377526356926174": {"active": false, "database": "acme_db", "plugin": "pgoutput", "slot_type": "logical"}, "test": {"active": true, "database": "acme_db", "plugin": "pgoutput", "slot_type": "logical"}, "test2": {"active": true, "database": "acme_db", "plugin": "pgoutput", "slot_type": "logical"}}, "replications": {"12218": {"app_name": "test", "backend_start": "2022-11-29 13:07:37.169534+03", "client_addr": "127.0.0.1", "client_hostname": "", "state": "streaming", "usename": "logical_replication"}, "12332": {"app_name": "test2", "backend_start": "2022-11-29 13:07:42.413852+03", "client_addr": "127.0.0.1", "client_hostname": "", "state": "streaming", "usename": "logical_replication"}}, "roles": {"logical_replication": {"canlogin": true, "member_of": [], "superuser": false, "valid_until": ""}, "postgres": {"canlogin": true, "member_of": [], "superuser": true, "valid_until": ""}}, "settings": {"DateStyle": {"boot_val": "ISO, MDY", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "ISO, MDY", "setting": "ISO, MDY", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "IntervalStyle": {"boot_val": "postgres", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "enum"}, "TimeZone": {"boot_val": "GMT", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "W-SU", "setting": "W-SU", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "allow_in_place_tablespaces": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "allow_system_table_mods": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "application_name": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_cleanup_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "(disabled)", "setting": "(disabled)", "sourcefile": "", "unit": "", "vartype": "string"}, "archive_mode": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "archive_timeout": {"boot_val": "0", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "array_nulls": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "authentication_timeout": {"boot_val": "60", "context": "sighup", "max_val": "600", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "autovacuum_analyze_scale_factor": {"boot_val": "0.1", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_analyze_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_freeze_max_age": {"boot_val": "200000000", "context": "postmaster", "max_val": "2000000000", "min_val": "100000", "pending_restart": false, "pretty_val": "200000000", "setting": "200000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_max_workers": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_multixact_freeze_max_age": {"boot_val": "400000000", "context": "postmaster", "max_val": "2000000000", "min_val": "10000", "pending_restart": false, "pretty_val": "400000000", "setting": "400000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_naptime": {"boot_val": "60", "context": "sighup", "max_val": "2147483", "min_val": "1", "pending_restart": false, "pretty_val": "1min", "setting": "60", "sourcefile": "", "unit": "s", "vartype": "integer"}, "autovacuum_vacuum_cost_delay": {"boot_val": "2", "context": "sighup", "max_val": "100", "min_val": "-1", "pending_restart": false, "pretty_val": "2ms", "setting": "2", "sourcefile": "", "unit": "ms", "vartype": "real"}, "autovacuum_vacuum_cost_limit": {"boot_val": "-1", "context": "sighup", "max_val": "10000", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_insert_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_insert_threshold": {"boot_val": "1000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_vacuum_scale_factor": {"boot_val": "0.2", "context": "sighup", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0.2", "setting": "0.2", "sourcefile": "", "unit": "", "vartype": "real"}, "autovacuum_vacuum_threshold": {"boot_val": "50", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "50", "setting": "50", "sourcefile": "", "unit": "", "vartype": "integer"}, "autovacuum_work_mem": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "backend_flush_after": {"boot_val": "0", "context": "user", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "8kB", "val_in_bytes": 0, "vartype": "integer"}, "backslash_quote": {"boot_val": "safe_encoding", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "safe_encoding", "setting": "safe_encoding", "sourcefile": "", "unit": "", "vartype": "enum"}, "backtrace_functions": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bgwriter_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "10", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "bgwriter_flush_after": {"boot_val": "64", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "bgwriter_lru_maxpages": {"boot_val": "100", "context": "sighup", "max_val": "1073741823", "min_val": "0", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "bgwriter_lru_multiplier": {"boot_val": "2", "context": "sighup", "max_val": "10", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "bonjour": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "bonjour_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "bytea_output": {"boot_val": "hex", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "hex", "setting": "hex", "sourcefile": "", "unit": "", "vartype": "enum"}, "check_function_bodies": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "checkpoint_completion_target": {"boot_val": "0.9", "context": "sighup", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.9", "setting": "0.9", "sourcefile": "", "unit": "", "vartype": "real"}, "checkpoint_flush_after": {"boot_val": "32", "context": "sighup", "max_val": "256", "min_val": "0", "pending_restart": false, "pretty_val": "256kB", "setting": "32", "sourcefile": "", "unit": "8kB", "val_in_bytes": 262144, "vartype": "integer"}, "checkpoint_timeout": {"boot_val": "300", "context": "sighup", "max_val": "86400", "min_val": "30", "pending_restart": false, "pretty_val": "5min", "setting": "300", "sourcefile": "", "unit": "s", "vartype": "integer"}, "checkpoint_warning": {"boot_val": "30", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "30s", "setting": "30", "sourcefile": "", "unit": "s", "vartype": "integer"}, "client_connection_check_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "client_encoding": {"boot_val": "SQL_ASCII", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "client_min_messages": {"boot_val": "notice", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "notice", "setting": "notice", "sourcefile": "", "unit": "", "vartype": "enum"}, "cluster_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "commit_delay": {"boot_val": "0", "context": "superuser", "max_val": "100000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "commit_siblings": {"boot_val": "5", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "compute_query_id": {"boot_val": "auto", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "config_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/pgsql/primary/data/postgresql.conf", "setting": "/var/lib/pgsql/primary/data/postgresql.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "constraint_exclusion": {"boot_val": "partition", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "partition", "setting": "partition", "sourcefile": "", "unit": "", "vartype": "enum"}, "cpu_index_tuple_cost": {"boot_val": "0.005", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.005", "setting": "0.005", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_operator_cost": {"boot_val": "0.0025", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.0025", "setting": "0.0025", "sourcefile": "", "unit": "", "vartype": "real"}, "cpu_tuple_cost": {"boot_val": "0.01", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.01", "setting": "0.01", "sourcefile": "", "unit": "", "vartype": "real"}, "cursor_tuple_fraction": {"boot_val": "0.1", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "data_checksums": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "data_directory": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/pgsql/primary/data", "setting": "/var/lib/pgsql/primary/data", "sourcefile": "", "unit": "", "vartype": "string"}, "data_directory_mode": {"boot_val": "448", "context": "internal", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0700", "setting": "0700", "sourcefile": "", "unit": "", "vartype": "integer"}, "data_sync_retry": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "db_user_namespace": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "deadlock_timeout": {"boot_val": "1000", "context": "superuser", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "1s", "setting": "1000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "debug_assertions": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_discard_caches": {"boot_val": "0", "context": "superuser", "max_val": "0", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "debug_pretty_print": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_parse": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_plan": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "debug_print_rewritten": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_statistics_target": {"boot_val": "100", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "default_table_access_method": {"boot_val": "heap", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "heap", "setting": "heap", "sourcefile": "", "unit": "", "vartype": "string"}, "default_tablespace": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "default_text_search_config": {"boot_val": "pg_catalog.simple", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pg_catalog.english", "setting": "pg_catalog.english", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "default_toast_compression": {"boot_val": "pglz", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pglz", "setting": "pglz", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "default_transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "default_transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "dynamic_library_path": {"boot_val": "$libdir", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "$libdir", "setting": "$libdir", "sourcefile": "", "unit": "", "vartype": "string"}, "dynamic_shared_memory_type": {"boot_val": "posix", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "posix", "setting": "posix", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "enum"}, "effective_cache_size": {"boot_val": "524288", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "4GB", "setting": "524288", "sourcefile": "", "unit": "8kB", "val_in_bytes": 4294967296, "vartype": "integer"}, "effective_io_concurrency": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "enable_async_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_bitmapscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_gathermerge": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashagg": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_hashjoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_incremental_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexonlyscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_indexscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_material": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_memoize": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_mergejoin": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_nestloop": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_append": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_parallel_hash": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partition_pruning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_aggregate": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_partitionwise_join": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_seqscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_sort": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "enable_tidscan": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "escape_string_warning": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "event_source": {"boot_val": "PostgreSQL", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "PostgreSQL", "setting": "PostgreSQL", "sourcefile": "", "unit": "", "vartype": "string"}, "exit_on_error": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "extension_destdir": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "external_pid_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "extra_float_digits": {"boot_val": "1", "context": "user", "max_val": "3", "min_val": "-15", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "force_parallel_mode": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "enum"}, "from_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "fsync": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "full_page_writes": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "geqo_effort": {"boot_val": "5", "context": "user", "max_val": "10", "min_val": "1", "pending_restart": false, "pretty_val": "5", "setting": "5", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_generations": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_pool_size": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "geqo_seed": {"boot_val": "0", "context": "user", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_selection_bias": {"boot_val": "2", "context": "user", "max_val": "2", "min_val": "1.5", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "real"}, "geqo_threshold": {"boot_val": "12", "context": "user", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "12", "setting": "12", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_fuzzy_search_limit": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "gin_pending_list_limit": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "hash_mem_multiplier": {"boot_val": "1", "context": "user", "max_val": "1000", "min_val": "1", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "hba_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/pgsql/primary/data/pg_hba.conf", "setting": "/var/lib/pgsql/primary/data/pg_hba.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "hot_standby": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "hot_standby_feedback": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "huge_page_size": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "huge_pages": {"boot_val": "try", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "try", "setting": "try", "sourcefile": "", "unit": "", "vartype": "enum"}, "ident_file": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/lib/pgsql/primary/data/pg_ident.conf", "setting": "/var/lib/pgsql/primary/data/pg_ident.conf", "sourcefile": "", "unit": "", "vartype": "string"}, "idle_in_transaction_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "idle_session_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "ignore_checksum_failure": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_invalid_pages": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ignore_system_indexes": {"boot_val": "off", "context": "backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "in_hot_standby": {"boot_val": "off", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "integer_datetimes": {"boot_val": "on", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_above_cost": {"boot_val": "100000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "100000", "setting": "100000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_debugging_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_dump_bitcode": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_expressions": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_inline_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_optimize_above_cost": {"boot_val": "500000", "context": "user", "max_val": "1.79769e+308", "min_val": "-1", "pending_restart": false, "pretty_val": "500000", "setting": "500000", "sourcefile": "", "unit": "", "vartype": "real"}, "jit_profiling_support": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "jit_provider": {"boot_val": "llvmjit", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "llvmjit", "setting": "llvmjit", "sourcefile": "", "unit": "", "vartype": "string"}, "jit_tuple_deforming": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "join_collapse_limit": {"boot_val": "8", "context": "user", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "krb_caseins_users": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "krb_server_keyfile": {"boot_val": "FILE:/etc/postgresql-common/krb5.keytab", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "FILE:/etc/postgresql-common/krb5.keytab", "setting": "FILE:/etc/postgresql-common/krb5.keytab", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_collate": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_ctype": {"boot_val": "C", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "", "unit": "", "vartype": "string"}, "lc_messages": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "lc_monetary": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "lc_numeric": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "lc_time": {"boot_val": "C", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "en_US.UTF-8", "setting": "en_US.UTF-8", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "listen_addresses": {"boot_val": "localhost", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "*", "setting": "*", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "lo_compat_privileges": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "local_preload_libraries": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "lock_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_autovacuum_min_duration": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_checkpoints": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_connections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_destination": {"boot_val": "stderr", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "stderr", "setting": "stderr", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_directory": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_disconnections": {"boot_val": "off", "context": "superuser-backend", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_duration": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_error_verbosity": {"boot_val": "default", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "default", "setting": "default", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_executor_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_file_mode": {"boot_val": "384", "context": "sighup", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0600", "setting": "0600", "sourcefile": "", "unit": "", "vartype": "integer"}, "log_filename": {"boot_val": "postgresql-%Y-%m-%d_%H%M%S.log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgresql-%a.log", "setting": "postgresql-%a.log", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_hostname": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_line_prefix": {"boot_val": "%m [%p] ", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "%m[%p]", "setting": "%m[%p]", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_lock_waits": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_min_duration_sample": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_duration_statement": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "log_min_error_statement": {"boot_val": "error", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "error", "setting": "error", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_min_messages": {"boot_val": "warning", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "warning", "setting": "warning", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_parameter_max_length": {"boot_val": "-1", "context": "superuser", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parameter_max_length_on_error": {"boot_val": "0", "context": "user", "max_val": "1073741823", "min_val": "-1", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "B", "vartype": "integer"}, "log_parser_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_planner_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_recovery_conflict_waits": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_replication_commands": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_rotation_age": {"boot_val": "1440", "context": "sighup", "max_val": "35791394", "min_val": "0", "pending_restart": false, "pretty_val": "1d", "setting": "1440", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "min", "vartype": "integer"}, "log_rotation_size": {"boot_val": "10240", "context": "sighup", "max_val": "2097151", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "log_statement": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "log_statement_sample_rate": {"boot_val": "1", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "log_statement_stats": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "log_temp_files": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "log_timezone": {"boot_val": "GMT", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "W-SU", "setting": "W-SU", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "string"}, "log_transaction_sample_rate": {"boot_val": "0", "context": "superuser", "max_val": "1", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "real"}, "log_truncate_on_rotation": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "bool"}, "logging_collector": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "bool"}, "logical_decoding_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "maintenance_io_concurrency": {"boot_val": "10", "context": "user", "max_val": "1000", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "", "unit": "", "vartype": "integer"}, "maintenance_work_mem": {"boot_val": "65536", "context": "user", "max_val": "2147483647", "min_val": "1024", "pending_restart": false, "pretty_val": "64MB", "setting": "65536", "sourcefile": "", "unit": "kB", "val_in_bytes": 67108864, "vartype": "integer"}, "max_connections": {"boot_val": "100", "context": "postmaster", "max_val": "262143", "min_val": "1", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "integer"}, "max_files_per_process": {"boot_val": "1000", "context": "postmaster", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_function_args": {"boot_val": "100", "context": "internal", "max_val": "100", "min_val": "100", "pending_restart": false, "pretty_val": "100", "setting": "100", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_identifier_length": {"boot_val": "63", "context": "internal", "max_val": "63", "min_val": "63", "pending_restart": false, "pretty_val": "63", "setting": "63", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_index_keys": {"boot_val": "32", "context": "internal", "max_val": "32", "min_val": "32", "pending_restart": false, "pretty_val": "32", "setting": "32", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_logical_replication_workers": {"boot_val": "4", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_maintenance_workers": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers": {"boot_val": "8", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_parallel_workers_per_gather": {"boot_val": "2", "context": "user", "max_val": "1024", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_page": {"boot_val": "2", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_relation": {"boot_val": "-2", "context": "sighup", "max_val": "2147483647", "min_val": "-2147483648", "pending_restart": false, "pretty_val": "-2", "setting": "-2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_pred_locks_per_transaction": {"boot_val": "64", "context": "postmaster", "max_val": "2147483647", "min_val": "10", "pending_restart": false, "pretty_val": "64", "setting": "64", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_prepared_transactions": {"boot_val": "0", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_replication_slots": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "10", "setting": "10", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "integer"}, "max_slot_wal_keep_size": {"boot_val": "-1", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "max_stack_depth": {"boot_val": "100", "context": "superuser", "max_val": "2147483647", "min_val": "100", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "max_standby_archive_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_standby_streaming_delay": {"boot_val": "30000", "context": "sighup", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "30s", "setting": "30000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "max_sync_workers_per_subscription": {"boot_val": "2", "context": "sighup", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "max_wal_senders": {"boot_val": "10", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "integer"}, "max_wal_size": {"boot_val": "1024", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "1GB", "setting": "1024", "sourcefile": "", "unit": "MB", "val_in_bytes": 1073741824, "vartype": "integer"}, "max_worker_processes": {"boot_val": "8", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "8", "setting": "8", "sourcefile": "", "unit": "", "vartype": "integer"}, "min_dynamic_shared_memory": {"boot_val": "0", "context": "postmaster", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "min_parallel_index_scan_size": {"boot_val": "64", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "512kB", "setting": "64", "sourcefile": "", "unit": "8kB", "val_in_bytes": 524288, "vartype": "integer"}, "min_parallel_table_scan_size": {"boot_val": "1024", "context": "user", "max_val": "715827882", "min_val": "0", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "min_wal_size": {"boot_val": "80", "context": "sighup", "max_val": "2147483647", "min_val": "2", "pending_restart": false, "pretty_val": "80MB", "setting": "80", "sourcefile": "", "unit": "MB", "val_in_bytes": 83886080, "vartype": "integer"}, "old_snapshot_threshold": {"boot_val": "-1", "context": "postmaster", "max_val": "86400", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "min", "vartype": "integer"}, "parallel_leader_participation": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "parallel_setup_cost": {"boot_val": "1000", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1000", "setting": "1000", "sourcefile": "", "unit": "", "vartype": "real"}, "parallel_tuple_cost": {"boot_val": "0.1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "0.1", "setting": "0.1", "sourcefile": "", "unit": "", "vartype": "real"}, "password_encryption": {"boot_val": "scram-sha-256", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "scram-sha-256", "setting": "scram-sha-256", "sourcefile": "", "unit": "", "vartype": "enum"}, "plan_cache_mode": {"boot_val": "auto", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "auto", "setting": "auto", "sourcefile": "", "unit": "", "vartype": "enum"}, "port": {"boot_val": "5432", "context": "postmaster", "max_val": "65535", "min_val": "1", "pending_restart": false, "pretty_val": "5431", "setting": "5431", "sourcefile": "", "unit": "", "vartype": "integer"}, "post_auth_delay": {"boot_val": "0", "context": "backend", "max_val": "2147", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "pre_auth_delay": {"boot_val": "0", "context": "sighup", "max_val": "60", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "primary_conninfo": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "primary_slot_name": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "promote_trigger_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "quote_all_identifiers": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "random_page_cost": {"boot_val": "4", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "4", "setting": "4", "sourcefile": "", "unit": "", "vartype": "real"}, "recovery_end_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_init_sync_method": {"boot_val": "fsync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fsync", "setting": "fsync", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_min_apply_delay": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "recovery_target": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_action": {"boot_val": "pause", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pause", "setting": "pause", "sourcefile": "", "unit": "", "vartype": "enum"}, "recovery_target_inclusive": {"boot_val": "on", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "recovery_target_lsn": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_name": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_time": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_timeline": {"boot_val": "latest", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "latest", "setting": "latest", "sourcefile": "", "unit": "", "vartype": "string"}, "recovery_target_xid": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "remove_temp_files_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restart_after_crash": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "restore_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "row_security": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "search_path": {"boot_val": "\"$user\", public", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "\"$user\", public", "setting": "\"$user\", public", "sourcefile": "", "unit": "", "vartype": "string"}, "segment_size": {"boot_val": "131072", "context": "internal", "max_val": "131072", "min_val": "131072", "pending_restart": false, "pretty_val": "1GB", "setting": "131072", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1073741824, "vartype": "integer"}, "seq_page_cost": {"boot_val": "1", "context": "user", "max_val": "1.79769e+308", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "real"}, "server_encoding": {"boot_val": "SQL_ASCII", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "UTF8", "setting": "UTF8", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version": {"boot_val": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "setting": "14.6 (Ubuntu 14.6-1.pgdg20.04+1)", "sourcefile": "", "unit": "", "vartype": "string"}, "server_version_num": {"boot_val": "140006", "context": "internal", "max_val": "140006", "min_val": "140006", "pending_restart": false, "pretty_val": "140006", "setting": "140006", "sourcefile": "", "unit": "", "vartype": "integer"}, "session_preload_libraries": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "session_replication_role": {"boot_val": "origin", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "origin", "setting": "origin", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_buffers": {"boot_val": "1024", "context": "postmaster", "max_val": "1073741823", "min_val": "16", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "shared_memory_type": {"boot_val": "mmap", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "mmap", "setting": "mmap", "sourcefile": "", "unit": "", "vartype": "enum"}, "shared_preload_libraries": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ssl_ca_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_cert_file": {"boot_val": "server.crt", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "server.crt", "setting": "server.crt", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_ciphers": {"boot_val": "HIGH:MEDIUM:+3DES:!aNULL", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "HIGH:MEDIUM:+3DES:!aNULL", "setting": "HIGH:MEDIUM:+3DES:!aNULL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_dir": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_crl_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_dh_params_file": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_ecdh_curve": {"boot_val": "prime256v1", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "prime256v1", "setting": "prime256v1", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_key_file": {"boot_val": "server.key", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "server.key", "setting": "server.key", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_library": {"boot_val": "OpenSSL", "context": "internal", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "OpenSSL", "setting": "OpenSSL", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_max_protocol_version": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_min_protocol_version": {"boot_val": "TLSv1.2", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "TLSv1.2", "setting": "TLSv1.2", "sourcefile": "", "unit": "", "vartype": "enum"}, "ssl_passphrase_command": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "ssl_passphrase_command_supports_reload": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "ssl_prefer_server_ciphers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "standard_conforming_strings": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "statement_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "stats_temp_directory": {"boot_val": "pg_stat_tmp", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "pg_stat_tmp", "setting": "pg_stat_tmp", "sourcefile": "", "unit": "", "vartype": "string"}, "superuser_reserved_connections": {"boot_val": "3", "context": "postmaster", "max_val": "262143", "min_val": "0", "pending_restart": false, "pretty_val": "3", "setting": "3", "sourcefile": "", "unit": "", "vartype": "integer"}, "synchronize_seqscans": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "synchronous_commit": {"boot_val": "on", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "enum"}, "synchronous_standby_names": {"boot_val": "", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_facility": {"boot_val": "local0", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "local0", "setting": "local0", "sourcefile": "", "unit": "", "vartype": "enum"}, "syslog_ident": {"boot_val": "postgres", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "postgres", "setting": "postgres", "sourcefile": "", "unit": "", "vartype": "string"}, "syslog_sequence_numbers": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "syslog_split_messages": {"boot_val": "on", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "tcp_keepalives_count": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "tcp_keepalives_idle": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_keepalives_interval": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "s", "vartype": "integer"}, "tcp_user_timeout": {"boot_val": "0", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "temp_buffers": {"boot_val": "1024", "context": "user", "max_val": "1073741823", "min_val": "100", "pending_restart": false, "pretty_val": "8MB", "setting": "1024", "sourcefile": "", "unit": "8kB", "val_in_bytes": 8388608, "vartype": "integer"}, "temp_file_limit": {"boot_val": "-1", "context": "superuser", "max_val": "2147483647", "min_val": "-1", "pending_restart": false, "pretty_val": "-1", "setting": "-1", "sourcefile": "", "unit": "kB", "val_in_bytes": 0, "vartype": "integer"}, "temp_tablespaces": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "timezone_abbreviations": {"boot_val": "", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "Default", "setting": "Default", "sourcefile": "", "unit": "", "vartype": "string"}, "trace_notify": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "trace_recovery_messages": {"boot_val": "log", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "log", "setting": "log", "sourcefile": "", "unit": "", "vartype": "enum"}, "trace_sort": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activities": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_activity_query_size": {"boot_val": "1024", "context": "postmaster", "max_val": "1048576", "min_val": "100", "pending_restart": false, "pretty_val": "1kB", "setting": "1024", "sourcefile": "", "unit": "B", "vartype": "integer"}, "track_commit_timestamp": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "bool"}, "track_counts": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_functions": {"boot_val": "none", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "none", "setting": "none", "sourcefile": "", "unit": "", "vartype": "enum"}, "track_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "track_wal_io_timing": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_deferrable": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transaction_isolation": {"boot_val": "read committed", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "read committed", "setting": "read committed", "sourcefile": "", "unit": "", "vartype": "enum"}, "transaction_read_only": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "transform_null_equals": {"boot_val": "off", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "unix_socket_directories": {"boot_val": "/var/run/postgresql", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "/var/run/postgresql", "setting": "/var/run/postgresql", "sourcefile": "", "unit": "", "vartype": "string"}, "unix_socket_group": {"boot_val": "", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "unix_socket_permissions": {"boot_val": "511", "context": "postmaster", "max_val": "511", "min_val": "0", "pending_restart": false, "pretty_val": "0777", "setting": "0777", "sourcefile": "", "unit": "", "vartype": "integer"}, "update_process_title": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "vacuum_cost_delay": {"boot_val": "0", "context": "user", "max_val": "100", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "ms", "vartype": "real"}, "vacuum_cost_limit": {"boot_val": "200", "context": "user", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200", "setting": "200", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_dirty": {"boot_val": "20", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "20", "setting": "20", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_hit": {"boot_val": "1", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "1", "setting": "1", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_cost_page_miss": {"boot_val": "2", "context": "user", "max_val": "10000", "min_val": "0", "pending_restart": false, "pretty_val": "2", "setting": "2", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_defer_cleanup_age": {"boot_val": "0", "context": "sighup", "max_val": "1000000", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_min_age": {"boot_val": "50000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "50000000", "setting": "50000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_failsafe_age": {"boot_val": "1600000000", "context": "user", "max_val": "2100000000", "min_val": "0", "pending_restart": false, "pretty_val": "1600000000", "setting": "1600000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_min_age": {"boot_val": "5000000", "context": "user", "max_val": "1000000000", "min_val": "0", "pending_restart": false, "pretty_val": "5000000", "setting": "5000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "vacuum_multixact_freeze_table_age": {"boot_val": "150000000", "context": "user", "max_val": "2000000000", "min_val": "0", "pending_restart": false, "pretty_val": "150000000", "setting": "150000000", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_block_size": {"boot_val": "8192", "context": "internal", "max_val": "8192", "min_val": "8192", "pending_restart": false, "pretty_val": "8192", "setting": "8192", "sourcefile": "", "unit": "", "vartype": "integer"}, "wal_buffers": {"boot_val": "-1", "context": "postmaster", "max_val": "262143", "min_val": "-1", "pending_restart": false, "pretty_val": "256kB", "setting": "32", "sourcefile": "", "unit": "8kB", "val_in_bytes": 262144, "vartype": "integer"}, "wal_compression": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_consistency_checking": {"boot_val": "", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "", "setting": "", "sourcefile": "", "unit": "", "vartype": "string"}, "wal_init_zero": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_keep_size": {"boot_val": "0", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "0", "setting": "0", "sourcefile": "", "unit": "MB", "val_in_bytes": 0, "vartype": "integer"}, "wal_level": {"boot_val": "replica", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "logical", "setting": "logical", "sourcefile": "/var/lib/pgsql/primary/data/postgresql.conf", "unit": "", "vartype": "enum"}, "wal_log_hints": {"boot_val": "off", "context": "postmaster", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_create_temp_slot": {"boot_val": "off", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_receiver_status_interval": {"boot_val": "10", "context": "sighup", "max_val": "2147483", "min_val": "0", "pending_restart": false, "pretty_val": "10s", "setting": "10", "sourcefile": "", "unit": "s", "vartype": "integer"}, "wal_receiver_timeout": {"boot_val": "60000", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_recycle": {"boot_val": "on", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "on", "setting": "on", "sourcefile": "", "unit": "", "vartype": "bool"}, "wal_retrieve_retry_interval": {"boot_val": "5000", "context": "sighup", "max_val": "2147483647", "min_val": "1", "pending_restart": false, "pretty_val": "5s", "setting": "5000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_segment_size": {"boot_val": "16777216", "context": "internal", "max_val": "1073741824", "min_val": "1048576", "pending_restart": false, "pretty_val": "16MB", "setting": "16777216", "sourcefile": "", "unit": "B", "vartype": "integer"}, "wal_sender_timeout": {"boot_val": "60000", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1min", "setting": "60000", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_skip_threshold": {"boot_val": "2048", "context": "user", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "2MB", "setting": "2048", "sourcefile": "", "unit": "kB", "val_in_bytes": 2097152, "vartype": "integer"}, "wal_sync_method": {"boot_val": "fdatasync", "context": "sighup", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "fdatasync", "setting": "fdatasync", "sourcefile": "", "unit": "", "vartype": "enum"}, "wal_writer_delay": {"boot_val": "200", "context": "sighup", "max_val": "10000", "min_val": "1", "pending_restart": false, "pretty_val": "200ms", "setting": "200", "sourcefile": "", "unit": "ms", "vartype": "integer"}, "wal_writer_flush_after": {"boot_val": "128", "context": "sighup", "max_val": "2147483647", "min_val": "0", "pending_restart": false, "pretty_val": "1MB", "setting": "128", "sourcefile": "", "unit": "8kB", "val_in_bytes": 1048576, "vartype": "integer"}, "work_mem": {"boot_val": "4096", "context": "user", "max_val": "2147483647", "min_val": "64", "pending_restart": false, "pretty_val": "4MB", "setting": "4096", "sourcefile": "", "unit": "kB", "val_in_bytes": 4194304, "vartype": "integer"}, "xmlbinary": {"boot_val": "base64", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "base64", "setting": "base64", "sourcefile": "", "unit": "", "vartype": "enum"}, "xmloption": {"boot_val": "content", "context": "user", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "content", "setting": "content", "sourcefile": "", "unit": "", "vartype": "enum"}, "zero_damaged_pages": {"boot_val": "off", "context": "superuser", "max_val": "", "min_val": "", "pending_restart": false, "pretty_val": "off", "setting": "off", "sourcefile": "", "unit": "", "vartype": "bool"}}, "tablespaces": {"pg_default": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}, "pg_global": {"spcacl": "", "spcoptions": [], "spcowner": "postgres"}}, "version": {"full": "14.6", "major": 14, "minor": 6, "raw": "PostgreSQL 14.6 (Ubuntu 14.6-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"}} + +TASK [postgresql_info : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +TASK [postgresql_info : postgresql_info - test trust_input parameter] ********** +fatal: [testhost]: FAILED! => {"changed": false, "msg": "Passed input 'curious.anonymous\"; SELECT * FROM information_schema.tables; --' is potentially dangerous"} +...ignoring + +TASK [postgresql_info : assert] ************************************************ +ok: [testhost] => { + "changed": false, + "msg": "All assertions passed" +} + +RUNNING HANDLER [setup_postgresql_replication : Stop services] ***************** +changed: [testhost] => (item={'datadir': '/var/lib/pgsql/primary/data', 'port': 5431}) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/lib/postgresql/15/bin/pg_ctl\n/usr/lib/postgresql/14/bin/pg_ctl -D /var/lib/pgsql/primary/data -o \"-p 5431\" -m immediate stop", "delta": "0:00:00.103508", "end": "2022-11-29 10:07:44.259636", "item": {"datadir": "/var/lib/pgsql/primary/data", "port": 5431}, "msg": "", "rc": 0, "start": "2022-11-29 10:07:44.156128", "stderr": "pg_ctl: no operation specified\nTry \"pg_ctl --help\" for more information.", "stderr_lines": ["pg_ctl: no operation specified", "Try \"pg_ctl --help\" for more information."], "stdout": "waiting for server to shut down.... done\nserver stopped", "stdout_lines": ["waiting for server to shut down.... done", "server stopped"], "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} +changed: [testhost] => (item={'datadir': '/var/lib/pgsql/replica/data', 'port': 5434}) => {"ansible_loop_var": "item", "changed": true, "cmd": "/usr/lib/postgresql/15/bin/pg_ctl\n/usr/lib/postgresql/14/bin/pg_ctl -D /var/lib/pgsql/replica/data -o \"-p 5434\" -m immediate stop", "delta": "0:00:00.104188", "end": "2022-11-29 10:07:44.514025", "item": {"datadir": "/var/lib/pgsql/replica/data", "port": 5434}, "msg": "", "rc": 0, "start": "2022-11-29 10:07:44.409837", "stderr": "pg_ctl: no operation specified\nTry \"pg_ctl --help\" for more information.", "stderr_lines": ["pg_ctl: no operation specified", "Try \"pg_ctl --help\" for more information."], "stdout": "waiting for server to shut down.... done\nserver stopped", "stdout_lines": ["waiting for server to shut down.... done", "server stopped"], "warnings": ["Unable to use /var/lib/postgresql/.ansible/tmp as temporary directory, failing back to system: [Errno 13] Permission denied: '/var/lib/postgresql/.ansible'"]} + +RUNNING HANDLER [setup_postgresql_replication : Remove packages] *************** +changed: [testhost] => {"changed": true, "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9\n libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2\n libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1\n libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5\n libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8\n libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2\n libllvm10 libltdl7 libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3\n libodbc1 libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15\n libprotobuf-c1 libqhull7 libsensors-config libsensors5 libsfcgal1\n libspatialite7 libsuperlu5 libsz2 libtiff5 liburiparser1 libwebp6\n libxerces-c3.2 mysql-common odbcinst odbcinst1debian2 poppler-data\n postgresql-14-postgis-3-scripts postgresql-client-14 proj-bin proj-data\n sysstat\nUse 'apt autoremove' to remove them.\nThe following packages will be REMOVED:\n postgresql-14 postgresql-15 postgresql-contrib python3-psycopg2\n0 upgraded, 0 newly installed, 4 to remove and 36 not upgraded.\nAfter this operation, 105 MB disk space will be freed.\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 29339 files and directories currently installed.)\r\nRemoving postgresql-14 (14.6-1.pgdg20.04+1) ...\r\nRemoving postgresql-contrib (15+246.pgdg20.04+1) ...\r\nRemoving postgresql-15 (15.1-1.pgdg20.04+1) ...\r\nRemoving python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...\r\nProcessing triggers for postgresql-common (246.pgdg20.04+1) ...\r\nBuilding PostgreSQL dictionaries from installed myspell/hunspell packages...\r\nRemoving obsolete dictionary files:\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9", " libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2", " libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1", " libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5", " libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8", " libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2", " libllvm10 libltdl7 libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3", " libodbc1 libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15", " libprotobuf-c1 libqhull7 libsensors-config libsensors5 libsfcgal1", " libspatialite7 libsuperlu5 libsz2 libtiff5 liburiparser1 libwebp6", " libxerces-c3.2 mysql-common odbcinst odbcinst1debian2 poppler-data", " postgresql-14-postgis-3-scripts postgresql-client-14 proj-bin proj-data", " sysstat", "Use 'apt autoremove' to remove them.", "The following packages will be REMOVED:", " postgresql-14 postgresql-15 postgresql-contrib python3-psycopg2", "0 upgraded, 0 newly installed, 4 to remove and 36 not upgraded.", "After this operation, 105 MB disk space will be freed.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 29339 files and directories currently installed.)", "Removing postgresql-14 (14.6-1.pgdg20.04+1) ...", "Removing postgresql-contrib (15+246.pgdg20.04+1) ...", "Removing postgresql-15 (15.1-1.pgdg20.04+1) ...", "Removing python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...", "Processing triggers for postgresql-common (246.pgdg20.04+1) ...", "Building PostgreSQL dictionaries from installed myspell/hunspell packages...", "Removing obsolete dictionary files:"]} + +RUNNING HANDLER [setup_postgresql_replication : Remove FS objects] ************* +changed: [testhost] => (item=/var/lib/pgsql/primary) => {"ansible_loop_var": "item", "changed": true, "item": "/var/lib/pgsql/primary", "path": "/var/lib/pgsql/primary", "state": "absent"} +changed: [testhost] => (item=/var/lib/pgsql/replica) => {"ansible_loop_var": "item", "changed": true, "item": "/var/lib/pgsql/replica", "path": "/var/lib/pgsql/replica", "state": "absent"} + +PLAY RECAP ********************************************************************* +testhost : ok=51 changed=27 unreachable=0 failed=0 skipped=1 rescued=0 ignored=3 + +Configuring target inventory. +Running postgresql_lang integration test role +Stream command: ansible-playbook postgresql_lang-qzr00ywx.yml -i inventory -v +[WARNING]: running playbook inside collection community.postgresql +Using /root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_lang-grvqe1x9-ÅÑŚÌβŁÈ/tests/integration/integration.cfg as config file + +PLAY [testhost] **************************************************************** + +TASK [Gathering Facts] ********************************************************* +ok: [testhost] + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_pkg_mgr : set_fact] ************************************************ +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 2] ****************************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : python 3] ****************************************** +ok: [testhost] => {"ansible_facts": {"python_suffix": "-py3"}, "changed": false} + +TASK [setup_postgresql_db : Include distribution and Python version specific variables] *** +ok: [testhost] => {"ansible_facts": {"pg_auto_conf": "{{ pg_dir }}/postgresql.auto.conf", "pg_dir": "/var/lib/postgresql/14/main", "pg_hba_location": "/etc/postgresql/14/main/pg_hba.conf", "pg_ver": 14, "postgis": "postgresql-14-postgis-3", "postgresql_packages": ["apt-utils", "postgresql-14", "postgresql-common", "python3-psycopg2"]}, "ansible_included_var_files": ["/root/ansible_collections/community/postgresql/tests/output/.tmp/integration/postgresql_lang-grvqe1x9-ÅÑŚÌβŁÈ/tests/integration/targets/setup_postgresql_db/vars/Ubuntu-20-py3.yml"], "changed": false} + +TASK [setup_postgresql_db : Make sure the dbus service is enabled under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Make sure the dbus service is started under systemd] *** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : stop postgresql service] *************************** +changed: [testhost] => {"changed": true, "name": "postgresql", "state": "stopped", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ActiveEnterTimestampMonotonic": "3701909638", "ActiveExitTimestamp": "Tue 2022-11-29 10:06:22 UTC", "ActiveExitTimestampMonotonic": "3686678447", "ActiveState": "active", "After": "system.slice systemd-journald.socket postgresql@15-main.service sysinit.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:06:37 UTC", "AssertTimestampMonotonic": "3701907098", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ConditionTimestampMonotonic": "3701907097", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@15-main.service", "ControlGroup": "/docker/6cb93688b1350c58ab3e683bcae2ff11e3ecc1a46d5279905e2c889e34ade04c/system.slice/postgresql.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ExecMainExitTimestampMonotonic": "3701909216", "ExecMainPID": "9703", "ExecMainStartTimestamp": "Tue 2022-11-29 10:06:37 UTC", "ExecMainStartTimestampMonotonic": "3701907835", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:06:22 UTC", "InactiveEnterTimestampMonotonic": "3686678447", "InactiveExitTimestamp": "Tue 2022-11-29 10:06:37 UTC", "InactiveExitTimestampMonotonic": "3701907970", "InvocationID": "e57ccdf8adf542b2accb947bc9626580", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@15-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:06:54 UTC", "StateChangeTimestampMonotonic": "3718888951", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@15-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : remove old db (RedHat)] **************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : remove old db config and files (debian)] *********** +changed: [testhost] => (item=/etc/postgresql) => {"ansible_loop_var": "loop_item", "changed": true, "loop_item": "/etc/postgresql", "path": "/etc/postgresql", "state": "absent"} +changed: [testhost] => (item=/var/lib/postgresql) => {"ansible_loop_var": "loop_item", "changed": true, "loop_item": "/var/lib/postgresql", "path": "/var/lib/postgresql", "state": "absent"} + +TASK [setup_postgresql_db : Install wget] ************************************** +ok: [testhost] => {"cache_update_time": 1669716114, "cache_updated": false, "changed": false} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "echo \"deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" > /etc/apt/sources.list.d/pgdg.list", "delta": "0:00:00.028967", "end": "2022-11-29 10:07:51.062231", "msg": "", "rc": 0, "start": "2022-11-29 10:07:51.033264", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -", "delta": "0:00:00.419796", "end": "2022-11-29 10:07:51.627694", "msg": "", "rc": 0, "start": "2022-11-29 10:07:51.207898", "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)"], "stdout": "OK", "stdout_lines": ["OK"]} + +TASK [setup_postgresql_db : Add a repository] ********************************** +changed: [testhost] => {"changed": true, "cmd": "apt -y update", "delta": "0:00:01.778316", "end": "2022-11-29 10:07:53.557574", "msg": "", "rc": 0, "start": "2022-11-29 10:07:51.779258", "stderr": "\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.", "stderr_lines": ["", "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."], "stdout": "Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease\nHit:2 http://archive.ubuntu.com/ubuntu focal InRelease\nHit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:4 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease\nHit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease\nReading package lists...\nBuilding dependency tree...\nReading state information...\n36 packages can be upgraded. Run 'apt list --upgradable' to see them.", "stdout_lines": ["Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease", "Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease", "Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease", "Hit:4 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease", "Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease", "Reading package lists...", "Building dependency tree...", "Reading state information...", "36 packages can be upgraded. Run 'apt list --upgradable' to see them."]} + +TASK [setup_postgresql_db : Install locale needed] ***************************** +changed: [testhost] => (item=es_ES) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen es_ES", "delta": "0:00:00.404128", "end": "2022-11-29 10:07:54.115128", "item": "es_ES", "msg": "", "rc": 0, "start": "2022-11-29 10:07:53.711000", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n es_ES.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " es_ES.ISO-8859-1... done", "Generation complete."]} +changed: [testhost] => (item=pt_BR) => {"ansible_loop_var": "item", "changed": true, "cmd": "locale-gen pt_BR", "delta": "0:00:00.402184", "end": "2022-11-29 10:07:54.649554", "item": "pt_BR", "msg": "", "rc": 0, "start": "2022-11-29 10:07:54.247370", "stderr": "", "stderr_lines": [], "stdout": "Generating locales (this might take a while)...\n pt_BR.ISO-8859-1... done\nGeneration complete.", "stdout_lines": ["Generating locales (this might take a while)...", " pt_BR.ISO-8859-1... done", "Generation complete."]} + +TASK [setup_postgresql_db : Update locale] ************************************* +changed: [testhost] => {"changed": true, "cmd": "update-locale", "delta": "0:00:00.016292", "end": "2022-11-29 10:07:54.815938", "msg": "", "rc": 0, "start": "2022-11-29 10:07:54.799646", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} + +TASK [setup_postgresql_db : install dependencies for postgresql test] ********** +ok: [testhost] => (item=apt-utils) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "apt-utils"} +changed: [testhost] => (item=postgresql-14) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": true, "postgresql_package_item": "postgresql-14", "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9\n libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2\n libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1\n libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5\n libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8\n libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7\n libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1\n libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1\n libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5\n liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2\n poppler-data postgresql-14-postgis-3-scripts proj-bin proj-data\nUse 'apt autoremove' to remove them.\nThe following NEW packages will be installed:\n postgresql-14\nPreconfiguring packages ...\n0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.\nNeed to get 0 B/15.8 MB of archives.\nAfter this operation, 51.5 MB of additional disk space will be used.\nSelecting previously unselected package postgresql-14.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 26176 files and directories currently installed.)\r\nPreparing to unpack .../postgresql-14_14.6-1.pgdg20.04+1_amd64.deb ...\r\nUnpacking postgresql-14 (14.6-1.pgdg20.04+1) ...\r\nSetting up postgresql-14 (14.6-1.pgdg20.04+1) ...\r\nupdate-alternatives: using /usr/share/postgresql/14/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode\r\nProcessing triggers for postgresql-common (246.pgdg20.04+1) ...\r\nBuilding PostgreSQL dictionaries from installed myspell/hunspell packages...\r\nRemoving obsolete dictionary files:\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9", " libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2", " libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1", " libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5", " libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8", " libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7", " libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1", " libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1", " libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5", " liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2", " poppler-data postgresql-14-postgis-3-scripts proj-bin proj-data", "Use 'apt autoremove' to remove them.", "The following NEW packages will be installed:", " postgresql-14", "Preconfiguring packages ...", "0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.", "Need to get 0 B/15.8 MB of archives.", "After this operation, 51.5 MB of additional disk space will be used.", "Selecting previously unselected package postgresql-14.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 26176 files and directories currently installed.)", "Preparing to unpack .../postgresql-14_14.6-1.pgdg20.04+1_amd64.deb ...", "Unpacking postgresql-14 (14.6-1.pgdg20.04+1) ...", "Setting up postgresql-14 (14.6-1.pgdg20.04+1) ...", "update-alternatives: using /usr/share/postgresql/14/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode", "Processing triggers for postgresql-common (246.pgdg20.04+1) ...", "Building PostgreSQL dictionaries from installed myspell/hunspell packages...", "Removing obsolete dictionary files:"]} +ok: [testhost] => (item=postgresql-common) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": false, "postgresql_package_item": "postgresql-common"} +changed: [testhost] => (item=python3-psycopg2) => {"ansible_loop_var": "postgresql_package_item", "cache_update_time": 1669716114, "cache_updated": false, "changed": true, "postgresql_package_item": "python3-psycopg2", "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9\n libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2\n libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1\n libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5\n libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8\n libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7\n libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1\n libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1\n libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5\n liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2\n poppler-data postgresql-14-postgis-3-scripts postgresql-client-15 proj-bin\n proj-data\nUse 'apt autoremove' to remove them.\nSuggested packages:\n python-psycopg2-doc\nThe following NEW packages will be installed:\n python3-psycopg2\n0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.\nNeed to get 0 B/120 kB of archives.\nAfter this operation, 456 kB of additional disk space will be used.\nSelecting previously unselected package python3-psycopg2.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 27714 files and directories currently installed.)\r\nPreparing to unpack .../python3-psycopg2_2.8.6-2~pgdg20.04+1_amd64.deb ...\r\nUnpacking python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...\r\nSetting up python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " fontconfig-config fonts-dejavu-core gdal-data libaec0 libarmadillo9", " libarpack2 libblas3 libboost-serialization1.71.0 libcfitsio8 libcharls2", " libdap25 libdapclient6v5 libepsilon1 libfontconfig1 libfreetype6 libfreexl1", " libfyba0 libgdal26 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgfortran5", " libgif7 libgmpxx4ldbl libhdf4-0-alt libhdf5-103 libjbig0 libjpeg-turbo8", " libjpeg8 libkmlbase1 libkmldom1 libkmlengine1 liblapack3 liblcms2-2 libltdl7", " libminizip1 libmysqlclient21 libnetcdf15 libnspr4 libnss3 libodbc1", " libogdi4.1 libopenjp2-7 libpng16-16 libpoppler97 libproj15 libprotobuf-c1", " libqhull7 libsfcgal1 libspatialite7 libsuperlu5 libsz2 libtiff5", " liburiparser1 libwebp6 libxerces-c3.2 mysql-common odbcinst odbcinst1debian2", " poppler-data postgresql-14-postgis-3-scripts postgresql-client-15 proj-bin", " proj-data", "Use 'apt autoremove' to remove them.", "Suggested packages:", " python-psycopg2-doc", "The following NEW packages will be installed:", " python3-psycopg2", "0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.", "Need to get 0 B/120 kB of archives.", "After this operation, 456 kB of additional disk space will be used.", "Selecting previously unselected package python3-psycopg2.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 27714 files and directories currently installed.)", "Preparing to unpack .../python3-psycopg2_2.8.6-2~pgdg20.04+1_amd64.deb ...", "Unpacking python3-psycopg2 (2.8.6-2~pgdg20.04+1) ...", "Setting up python3-psycopg2 (2.8.6-2~pgdg20.04+1) ..."]} + +TASK [setup_postgresql_db : Initialize postgres (RedHat systemd)] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (RedHat sysv)] ***************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Initialize postgres (Debian)] ********************** +changed: [testhost] => {"changed": true, "cmd": ". /usr/share/postgresql-common/maintscripts-functions && set_system_locale && /usr/bin/pg_createcluster -u postgres 14 main", "delta": "0:00:03.268308", "end": "2022-11-29 10:08:05.289192", "msg": "", "rc": 0, "start": "2022-11-29 10:08:02.020884", "stderr": "", "stderr_lines": [], "stdout": "Creating new PostgreSQL cluster 14/main ...\n/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions\nThe files belonging to this database system will be owned by user \"postgres\".\nThis user must also own the server process.\n\nThe database cluster will be initialized with locale \"C.UTF-8\".\nThe default database encoding has accordingly been set to \"UTF8\".\nThe default text search configuration will be set to \"english\".\n\nData page checksums are disabled.\n\nfixing permissions on existing directory /var/lib/postgresql/14/main ... ok\ncreating subdirectories ... ok\nselecting dynamic shared memory implementation ... posix\nselecting default max_connections ... 100\nselecting default shared_buffers ... 128MB\nselecting default time zone ... Etc/UTC\ncreating configuration files ... ok\nrunning bootstrap script ... ok\nperforming post-bootstrap initialization ... ok\nsyncing data to disk ... ok\nVer Cluster Port Status Owner Data directory Log file\n14 main 5432 down postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log", "stdout_lines": ["Creating new PostgreSQL cluster 14/main ...", "/usr/lib/postgresql/14/bin/initdb -D /var/lib/postgresql/14/main --auth-local peer --auth-host scram-sha-256 --no-instructions", "The files belonging to this database system will be owned by user \"postgres\".", "This user must also own the server process.", "", "The database cluster will be initialized with locale \"C.UTF-8\".", "The default database encoding has accordingly been set to \"UTF8\".", "The default text search configuration will be set to \"english\".", "", "Data page checksums are disabled.", "", "fixing permissions on existing directory /var/lib/postgresql/14/main ... ok", "creating subdirectories ... ok", "selecting dynamic shared memory implementation ... posix", "selecting default max_connections ... 100", "selecting default shared_buffers ... 128MB", "selecting default time zone ... Etc/UTC", "creating configuration files ... ok", "running bootstrap script ... ok", "performing post-bootstrap initialization ... ok", "syncing data to disk ... ok", "Ver Cluster Port Status Owner Data directory Log file", "14 main 5432 down postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log"]} + +TASK [setup_postgresql_db : Copy pg_hba into place] **************************** +changed: [testhost] => {"changed": true, "checksum": "ee5e714afec7113d11e2aca167bd08ba0eb2bd32", "dest": "/etc/postgresql/14/main/pg_hba.conf", "gid": 0, "group": "root", "md5sum": "ac04fb305309e15b41c01dd5d3d6ca6d", "mode": "0644", "owner": "postgres", "size": 470, "src": "/root/.ansible/tmp/ansible-tmp-1669716485.3283377-2915-69675278625487/source", "state": "file", "uid": 105} + +TASK [setup_postgresql_db : Install langpacks (RHEL8)] ************************* +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Check if locales need to be generated (RedHat)] **** +skipping: [testhost] => (item=es_ES) => {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=pt_BR) => {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Reinstall internationalization files] ************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Generate locale (RedHat)] ************************** +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'es_ES', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "es_ES", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'locale': 'pt_BR', 'ansible_loop_var': 'locale'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "locale", "changed": false, "locale": "pt_BR", "skip_reason": "Conditional result was False", "skipped": true}, "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : Install glibc langpacks (Fedora >= 24)] ************ +skipping: [testhost] => (item=glibc-langpack-es) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-es", "skip_reason": "Conditional result was False"} +skipping: [testhost] => (item=glibc-langpack-pt) => {"ansible_loop_var": "item", "changed": false, "item": "glibc-langpack-pt", "skip_reason": "Conditional result was False"} +skipping: [testhost] => {"changed": false, "msg": "All items skipped"} + +TASK [setup_postgresql_db : start postgresql service] ************************** +ok: [testhost] => {"changed": false, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:07:58 UTC", "ActiveEnterTimestampMonotonic": "3782698710", "ActiveExitTimestamp": "Tue 2022-11-29 10:07:49 UTC", "ActiveExitTimestampMonotonic": "3773521601", "ActiveState": "active", "After": "system.slice postgresql@14-main.service systemd-journald.socket sysinit.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:07:58 UTC", "AssertTimestampMonotonic": "3782696778", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:07:58 UTC", "ConditionTimestampMonotonic": "3782696777", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlGroup": "/docker/6cb93688b1350c58ab3e683bcae2ff11e3ecc1a46d5279905e2c889e34ade04c/system.slice/postgresql.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:07:58 UTC", "ExecMainExitTimestampMonotonic": "3782698424", "ExecMainPID": "13248", "ExecMainStartTimestamp": "Tue 2022-11-29 10:07:58 UTC", "ExecMainStartTimestampMonotonic": "3782697501", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:07:49 UTC", "InactiveEnterTimestampMonotonic": "3773521601", "InactiveExitTimestamp": "Tue 2022-11-29 10:07:58 UTC", "InactiveExitTimestampMonotonic": "3782697641", "InvocationID": "fb7d547045a347aeb301b4f99d614ed5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:07:58 UTC", "StateChangeTimestampMonotonic": "3782698710", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : Pause between start and stop] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:08:06.274040", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:08:11.274255", "user_input": ""} + +TASK [setup_postgresql_db : Kill all postgres processes] *********************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Stop postgresql service] *************************** +skipping: [testhost] => {"changed": false, "skip_reason": "Conditional result was False"} + +TASK [setup_postgresql_db : Pause between stop and start] ********************** +Pausing for 5 seconds +(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) +ok: [testhost] => {"changed": false, "delta": 5, "echo": true, "rc": 0, "start": "2022-11-29 10:08:11.379265", "stderr": "", "stdout": "Paused for 5.0 seconds", "stop": "2022-11-29 10:08:16.379509", "user_input": ""} + +TASK [setup_postgresql_db : Start postgresql service] ************************** +ok: [testhost] => {"changed": false, "name": "postgresql", "state": "started", "status": {"ActiveEnterTimestamp": "Tue 2022-11-29 10:07:58 UTC", "ActiveEnterTimestampMonotonic": "3782698710", "ActiveExitTimestamp": "Tue 2022-11-29 10:07:49 UTC", "ActiveExitTimestampMonotonic": "3773521601", "ActiveState": "active", "After": "system.slice postgresql@14-main.service systemd-journald.socket sysinit.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-11-29 10:07:58 UTC", "AssertTimestampMonotonic": "3782696778", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read 0x26 0x27 0x28", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-11-29 10:07:58 UTC", "ConditionTimestampMonotonic": "3782696777", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ConsistsOf": "postgresql@14-main.service", "ControlGroup": "/docker/6cb93688b1350c58ab3e683bcae2ff11e3ecc1a46d5279905e2c889e34ade04c/system.slice/postgresql.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "PostgreSQL RDBMS", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "1", "ExecMainExitTimestamp": "Tue 2022-11-29 10:07:58 UTC", "ExecMainExitTimestampMonotonic": "3782698424", "ExecMainPID": "13248", "ExecMainStartTimestamp": "Tue 2022-11-29 10:07:58 UTC", "ExecMainStartTimestampMonotonic": "3782697501", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/bin/true ; argv[]=/bin/true ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/bin/true ; argv[]=/bin/true ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/lib/systemd/system/postgresql.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "postgresql.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-11-29 10:07:49 UTC", "InactiveEnterTimestampMonotonic": "3773521601", "InactiveExitTimestamp": "Tue 2022-11-29 10:07:58 UTC", "InactiveExitTimestampMonotonic": "3782697641", "InvocationID": "fb7d547045a347aeb301b4f99d614ed5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "infinity", "LimitNPROCSoft": "infinity", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "62864", "LimitSIGPENDINGSoft": "62864", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "0", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "postgresql.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "PropagatesReloadTo": "postgresql@14-main.service", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-11-29 10:07:58 UTC", "StateChangeTimestampMonotonic": "3782698710", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "18859", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "infinity", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "postgresql@14-main.service", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} + +TASK [setup_postgresql_db : copy control file for dummy ext] ******************* +ok: [testhost] => {"changed": false, "checksum": "de37beb34a4765b0b07dc249c7866f1e0e7351fa", "dest": "/usr/share/postgresql/14/extension/dummy.control", "gid": 0, "group": "root", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy.control", "size": 114, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : copy version files for dummy ext] ****************** +ok: [testhost] => (item=dummy--0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "8f073962a56e90e49c0d8f7985497cd1b51506e2", "dest": "/usr/share/postgresql/14/extension/dummy--0.sql", "gid": 0, "group": "root", "item": "dummy--0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--0.sql", "size": 108, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--1.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "a2b62264e8d532f9217b439b11c8c366dea14dc6", "dest": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--1.0.sql", "size": 110, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--2.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "f6839f9b1988bb8b594b50b4f85c7a52fc770d9d", "dest": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--2.0.sql", "size": 110, "state": "file", "uid": 0} +ok: [testhost] => (item=dummy--3.0.sql) => {"ansible_loop_var": "item", "changed": false, "checksum": "a5875ba65c676f96c2f3527a2ef0c495e77a9a72", "dest": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "gid": 0, "group": "root", "item": "dummy--3.0.sql", "mode": "0444", "owner": "root", "path": "/usr/share/postgresql/14/extension/dummy--3.0.sql", "size": 110, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : add update paths] ********************************** +changed: [testhost] => (item=dummy--0--1.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--0--1.0.sql", "gid": 0, "group": "root", "item": "dummy--0--1.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--1.0--2.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--1.0--2.0.sql", "gid": 0, "group": "root", "item": "dummy--1.0--2.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} +changed: [testhost] => (item=dummy--2.0--3.0.sql) => {"ansible_loop_var": "item", "changed": true, "dest": "/usr/share/postgresql/14/extension/dummy--2.0--3.0.sql", "gid": 0, "group": "root", "item": "dummy--2.0--3.0.sql", "mode": "0444", "owner": "root", "size": 0, "state": "file", "uid": 0} + +TASK [setup_postgresql_db : Get PostgreSQL version] **************************** +[WARNING]: Unable to use /var/lib/postgresql/.ansible/tmp as temporary +directory, failing back to system: [Errno 13] Permission denied: +'/var/lib/postgresql/.ansible' +fatal: [testhost]: FAILED! => {"changed": true, "cmd": "echo 'SHOW SERVER_VERSION' | psql --tuples-only --no-align --dbname postgres", "delta": "0:00:00.030560", "end": "2022-11-29 10:08:18.787529", "msg": "non-zero return code", "rc": 2, "start": "2022-11-29 10:08:18.756969", "stderr": "psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory\n\tIs the server running locally and accepting connections on that socket?", "stderr_lines": ["psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory", "\tIs the server running locally and accepting connections on that socket?"], "stdout": "", "stdout_lines": []} + +PLAY RECAP ********************************************************************* +testhost : ok=21 changed=11 unreachable=0 failed=1 skipped=16 rescued=0 ignored=0 + +NOTICE: To resume at this test target, use the option: --start-at postgresql_lang +NOTICE: To resume after this test target, use the option: --start-at postgresql_membership +FATAL: Command "ansible-playbook postgresql_lang-qzr00ywx.yml -i inventory -v" returned exit status 2. +Run command with stdout: docker exec -i ansible-test-controller-AtOFET7r sh -c 'tar cf - -C /root/ansible_collections/community/postgresql/tests --exclude .tmp output | gzip' +Run command with stdin: tar oxzf - -C /home/mxk/ansible_collections/community/postgresql/tests +Run command: docker rm -f ansible-test-controller-AtOFET7r +Run command: docker rm -f ansible-test-target-AtOFET7r diff --git a/tests/integration/targets/postgresql_table/tasks/#postgresql_table_initial.yml# b/tests/integration/targets/postgresql_table/tasks/#postgresql_table_initial.yml# new file mode 100644 index 00000000..863f8262 --- /dev/null +++ b/tests/integration/targets/postgresql_table/tasks/#postgresql_table_initial.yml# @@ -0,0 +1,933 @@ +# Test code for the postgresql_set module + +# Copyright: (c) 2019, Andrew Klychkov (@Andersson007) +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) + +# Create a role for tests: +- name: postgresql_table - create a role for tests + become_user: "{{ pg_user }}" + become: true + postgresql_user: + db: postgres + login_user: "{{ pg_user }}" + name: alice + +- name: postgresql_table - create test schema + become_user: "{{ pg_user }}" + become: true + postgresql_schema: + database: postgres + login_user: "{{ pg_user }}" + name: acme + +# +# Check table creation +# + +# Create a simple table in check_mode: +- name: postgresql_table - create table in check_mode + become_user: "{{ pg_user }}" + become: true + postgresql_table: + login_db: postgres + login_port: 5432 + login_user: "{{ pg_user }}" + name: test1 + owner: alice + columns: id int + register: result + ignore_errors: true + check_mode: true + +- assert: + that: + - result is changed + - result.table == 'test1' + - result.queries == ['CREATE TABLE "test1" (id int)', 'ALTER TABLE "test1" OWNER TO "alice"'] + - result.state == 'absent' + +# Check that the table doesn't exist after the previous step, rowcount must be 0 +- name: postgresql_table - check that table doesn't exist after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test1'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 0 + +# Create a simple table: +- name: postgresql_table - create table + become_user: "{{ pg_user }}" + become: true + postgresql_table: + login_db: postgres + login_port: 5432 + login_user: "{{ pg_user }}" + name: test1 + owner: alice + columns: id int + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.table == 'test1' + - result.queries == ['CREATE TABLE "test1" (id int)', 'ALTER TABLE "test1" OWNER TO "alice"'] + - result.state == 'present' + - result.storage_params == [] + - result.tablespace == "" + - result.owner == "alice" + +# Check that the table exists after the previous step, rowcount must be 1 +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test1'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +# Check that the tableowner is alice +- name: postgresql_table - check that table owner is alice + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_tables WHERE tablename = 'test1' AND tableowner = 'alice'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +# +# Check create table like another table +# + +# Create a table LIKE another table without any additional parameters in check_mode: +- name: postgresql_table - create table like in check_mode + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test2 + like: test1 + register: result + ignore_errors: true + check_mode: true + +- assert: + that: + - result is changed + - result.table == 'test2' + - result.queries == ['CREATE TABLE "test2" (LIKE "test1")'] + - result.state == 'absent' + +# Check that the table doesn't exist after the previous step, rowcount must be 0 +- name: postgresql_table - check that table doesn't exist after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test2'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 0 + +# Create a table LIKE another table without any additional parameters: +- name: postgresql_table - create table like + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test2 + like: test1 + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.table == 'test2' + - result.queries == ['CREATE TABLE "test2" (LIKE "test1")'] + - result.state == 'present' + - result.storage_params == [] + - result.tablespace == "" + - result.owner == "{{ pg_user }}" + +# Check that the table exists after the previous step, rowcount must be 1 +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test2'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +# +# Check drop table +# + +# Drop a table in check_mode: +- name: postgresql_table - drop table in check_mode + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test2 + state: absent + register: result + ignore_errors: true + check_mode: true + +- assert: + that: + - result is changed + - result.queries == ['DROP TABLE "test2"'] + - result.state == 'present' + - result.storage_params == [] + - result.tablespace == "" + - result.owner == "{{ pg_user }}" + +# Check that the table exists after the previous step, rowcount must be 1 +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test2'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +# Drop a table: +- name: postgresql_table - drop table + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test2 + state: absent + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.queries == ['DROP TABLE "test2"'] + - result.state == 'absent' + +# Check that the table doesn't exist after the previous step, rowcount must be 0 +- name: postgresql_table - check that table doesn't exist after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test2'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 0 + +# Create a table like another table including: +- name: postgresql_table - create table like with including indexes + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test2 + like: test1 + including: indexes + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.queries == ['CREATE TABLE "test2" (LIKE "test1" INCLUDING indexes)'] + - result.state == 'present' + - result.storage_params == [] + - result.tablespace == "" + - result.owner == "{{ pg_user }}" + +# Check to create table if it exists: +- name: postgresql_table - try to create existing table again + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test2 + like: test1 + including: indexes + register: result + ignore_errors: true + +- assert: + that: + - result is not changed + +# Drop the table to prepare for the next step: +- name: postgresql_table - drop table + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test2 + state: absent + register: result + ignore_errors: true + +# Try to drop non existing table: +- name: postgresql_table - try drop dropped table again + become_user: "{{ pg_user }}" + become: true + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test2 + state: absent + register: result + ignore_errors: true + +- assert: + that: + - result is not changed + +# +# Change ownership +# + +# Create user to prepare for the next step: +- name: postgresql_table - create the new user test_user + become: true + become_user: "{{ pg_user }}" + postgresql_user: + login_user: "{{ pg_user }}" + db: postgres + name: test_user + state: present + ignore_errors: true + +# Try to change owner to test_user in check_mode +- name: postgresql_table - change table ownership to test_user in check_mode + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test1 + owner: test_user + register: result + ignore_errors: true + check_mode: true + +- assert: + that: + - result.owner == 'alice' + - result.queries == ['ALTER TABLE "test1" OWNER TO "test_user"'] + - result.state == 'present' + - result is changed + +# Check that the tableowner was not changed to test_user +- name: postgresql_table - check that table owner was not changed + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_tables WHERE tablename = 'test1' AND tableowner = 'test_user'" + ignore_errors: true + register: result + +- assert: + that: + - result is not changed + +# Try to change owner to test_user +- name: postgresql_table - change table ownership to test_user + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test1 + owner: test_user + register: result + ignore_errors: true + +- assert: + that: + - result.owner == 'test_user' + - result.queries == ['ALTER TABLE "test1" OWNER TO "test_user"'] + - result.state == 'present' + - result is changed + +# Check that the tableowner was changed to test_user +- name: postgresql_table - check that table owner was changed + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_tables WHERE tablename = 'test1' AND tableowner = 'test_user'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +# +# Additional storage parameters +# + +# Create a table with additional storage parameters: +- name: postgresql_table - create table with storage_params + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test3 + columns: + - id int + - name text + storage_params: + - fillfactor=10 + - autovacuum_analyze_threshold=1 + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.state == 'present' + - result.queries == ['CREATE TABLE "test3" (id int,name text) WITH (fillfactor=10,autovacuum_analyze_threshold=1)'] + - result.storage_params == [ "fillfactor=10", "autovacuum_analyze_threshold=1" ] + +# Check storage parameters +- name: postgresql_table - check storage parameters + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT reloptions FROM pg_class WHERE relname = 'test3'" + ignore_errors: true + register: result + +- assert: + that: + - result.query_result[0].reloptions == ["fillfactor=10", "autovacuum_analyze_threshold=1"] +# +# Check truncate table +# + +# Insert a row to test table: +- name: postgresql_table - insert a row + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "INSERT INTO test3 (id, name) VALUES (1, 'first')" + +# Truncate a table in check_mode: +- name: postgresql_table - truncate table + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test3 + truncate: true + register: result + ignore_errors: true + check_mode: true + +- assert: + that: + - result is changed + - result.queries == ['TRUNCATE TABLE "test3"'] + - result.state == "present" + +# Check the row exists: +- name: postgresql_table - check that row exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT * FROM test3 WHERE id = '1'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +# Truncate a table. It always returns changed == true +# because it always creates a new table with the same schema and drop the old table: +- name: postgresql_table - truncate table + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test3 + truncate: true + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.queries == ['TRUNCATE TABLE "test3"'] + - result.state == "present" + +# Check the row exists: +- name: postgresql_table - check that row doesn't exist after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT * FROM test3 WHERE id = '1'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 0 + +# +# Check rename table +# + +# Rename a table in check_mode. +# In check_mode test4 won't be exist after the following playbook, +# so result.changed == 'absent' for the table with this name +- name: postgresql_table - rename table in check_mode + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test3 + rename: test4 + register: result + ignore_errors: true + check_mode: true + +- assert: + that: + - result is changed + - result.queries == ['ALTER TABLE "test3" RENAME TO "test4"'] + - result.state == "absent" + +# Check that the table exists after the previous step, rowcount must be 1 +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test3'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +# Rename a table: +- name: postgresql_table - rename table + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test3 + rename: test4 + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.queries == ['ALTER TABLE "test3" RENAME TO "test4"'] + - result.state == "present" + +# Check that the table test 3 doesn't exist after the previous step, rowcount must be - 0 +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test3'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 0 + +# Check that the table test 4 exists after the previous step, rowcount must be - 1 +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test4'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +# +# Check create unlogged table +# + +# Create unlogged table in check_mode: +- name: postgresql_table - create unlogged table in check_mode + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test5 + unlogged: true + register: result + ignore_errors: true + check_mode: true + +- assert: + that: + - result is changed + - result.queries == ['CREATE UNLOGGED TABLE "test5" ()'] + when: postgres_version_resp.stdout is version('9.1', '>=') + +# Check that the table doesn't exist after the previous step, rowcount must be - 0 +- name: postgresql_table - check that table doesn't exist after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test5'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 0 + +# Create unlogged table: +- name: postgresql_table - create unlogged table + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test5 + unlogged: true + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.queries == ['CREATE UNLOGGED TABLE "test5" ()'] + when: postgres_version_resp.stdout is version('9.1', '>=') + +# Check that the table exists after the previous step, rowcount must be - 1 +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test5'" + ignore_errors: true + register: result + when: postgres_version_resp.stdout is version('9.1', '>=') + +- assert: + that: + - result.rowcount == 1 + when: postgres_version_resp.stdout is version('9.1', '>=') + +# Drop table CASCADE: +- name: postgresql_table - drop table cascade + become: true + become_user: "{{ pg_user }}" + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test5 + state: absent + cascade: true + register: result + ignore_errors: true + +- assert: + that: + - result is changed + - result.queries == ['DROP TABLE "test5" CASCADE'] + when: postgres_version_resp.stdout is version('9.1', '>=') + +# Check that the table doesn't exist after the previous step, rowcount must be - 0 +- name: postgresql_table - check that table doesn't exist after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test5'" + ignore_errors: true + register: result + when: postgres_version_resp.stdout is version('9.1', '>=') + +- assert: + that: + - result.rowcount == 0 + when: postgres_version_resp.stdout is version('9.1', '>=') + +# +# Create, drop, and rename table in a specific schema: +# +- name: postgresql_table - create table in a specific schema + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: acme.test_schema_table + register: result + +- assert: + that: + - result is changed + - result.queries == ['CREATE TABLE "acme"."test_schema_table" ()'] + +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test_schema_table' and schemaname = 'acme'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +- name: postgresql_table - try to create a table with the same name and schema again + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: acme.test_schema_table + register: result + +- assert: + that: + - result is not changed + +- name: postgresql_table - create a table in the default schema for the next test + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: test_schema_table + register: result + +- assert: + that: + - result is changed + +- name: postgresql_table - drop the table from schema acme + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: postgres.acme.test_schema_table + state: absent + register: result + +- assert: + that: + - result is changed + - result.queries == ['DROP TABLE "postgres"."acme"."test_schema_table"'] + +- name: postgresql_table - check that the table doesn't exist after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test_schema_table' and schemaname = 'acme'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 0 + +- name: postgresql_table - try to drop the table from schema acme again + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: acme.test_schema_table + state: absent + register: result + +- assert: + that: + - result is not changed + +- name: postgresql_table - check that the table with the same name in schema public exists + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test_schema_table' and schemaname = 'public'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +- name: postgresql_table - rename the table that contents a schema name + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: public.test_schema_table + rename: new_test_schema_table + trust_input: true + register: result + +- assert: + that: + - result is changed + - result.queries == ['ALTER TABLE "public"."test_schema_table" RENAME TO "new_test_schema_table"'] + +# +# Create and drop partitioned table: +# + +- name: postgresql_table - create table with partition by range + postgresql_table: + db: postgres + login_port: 5432 + login_user: "{{ pg_user }}" + name: test5 + columns: id int + partition_by: RANGE + partition_on: id + register: result + +- assert: + that: + - result is changed + - result.queries == ['CREATE TABLE "test5" (id int) PARTITION BY RANGE (id)'] + +- name: postgresql_table - check that table exists after the previous step + become_user: "{{ pg_user }}" + become: true + postgresql_query: + db: postgres + login_user: "{{ pg_user }}" + query: "SELECT 1 FROM pg_stat_all_tables WHERE relname = 'test5'" + ignore_errors: true + register: result + +- assert: + that: + - result.rowcount == 1 + +############################ +# Test trust_input parameter +- name: postgresql_table - check trust_input + postgresql_table: + db: postgres + login_user: "{{ pg_user }}" + name: postgres.acme.test_schema_table + state: absent + trust_input: false + session_role: 'curious.anonymous"; SELECT * FROM information_schema.tables; --' + register: result + ignore_errors: true + +- assert: + that: + - result is failed + - result.msg is search('is potentially dangerous') + +# +# Clean up +# +- name: postgresql_table - drop test schema + become_user: "{{ pg_user }}" + become: true + postgresql_schema: + database: postgres + login_user: "{{ pg_user }}" + name: acme + state: absent + cascade_drop: true + +- name: postgresql_table - drop test role + become_user: "{{ pg_user }}" + become: true + postgresql_user: + db: postgres + login_user: "{{ pg_user }}" + name: "{{ item }}" + state: absent + loop: + - test_user + - alice + ignore_errors: true diff --git a/tests/integration/targets/setup_postgresql_db/tasks/#main.yml# b/tests/integration/targets/setup_postgresql_db/tasks/#main.yml# new file mode 100644 index 00000000..57384962 --- /dev/null +++ b/tests/integration/targets/setup_postgresql_db/tasks/#main.yml# @@ -0,0 +1,252 @@ +#################################################################### +# WARNING: These are designed specifically for Ansible tests # +# and should not be used as examples of how to write Ansible roles # +#################################################################### + +- name: python 2 + set_fact: + python_suffix: '' + when: ansible_python_version is version('3', '<') + +- name: python 3 + set_fact: + python_suffix: -py3 + when: ansible_python_version is version('3', '>=') + +- name: Include distribution and Python version specific variables + include_vars: '{{ lookup(''first_found'', params) }}' + vars: + params: + files: + - '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}{{ python_suffix }}.yml' + - '{{ ansible_distribution }}-{{ ansible_distribution_version }}{{ python_suffix }}.yml' + - '{{ ansible_os_family }}{{ python_suffix }}.yml' + - default{{ python_suffix }}.yml + paths: + - '{{ role_path }}/vars' + +- name: Make sure the dbus service is enabled under systemd + shell: systemctl enable dbus || systemctl enable dbus-broker + ignore_errors: true + when: ansible_service_mgr == 'systemd' and ansible_distribution == 'Fedora' + +- name: Make sure the dbus service is started under systemd + systemd: + name: dbus + state: started + when: ansible_service_mgr == 'systemd' and ansible_distribution == 'Fedora' + +- name: Kill all postgres processes + shell: 'pkill -u {{ pg_user }}' + become: true + when: ansible_facts.distribution == 'CentOS' and ansible_facts.distribution_major_version == '8' + ignore_errors: true + +- name: stop postgresql service + service: name={{ postgresql_service }} state=stopped + ignore_errors: true + +- name: remove old db (RedHat) + file: + path: '{{ pg_dir }}' + state: absent + ignore_errors: true + when: ansible_os_family == "RedHat" + +- name: remove old db config and files (debian) + file: + path: '{{ loop_item }}' + state: absent + ignore_errors: true + when: ansible_os_family == "Debian" + loop: + - /etc/postgresql + - /var/lib/postgresql + loop_control: + loop_var: loop_item + +# +# Install PostgreSQL 14 on Ubuntu 20.04 +- name: Install wget + package: + name: wget + when: ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_major_version == '20' + +- name: Add a repository + shell: echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list + when: ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_major_version == '20' + +- name: Add a repository + shell: wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - + when: ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_major_version == '20' + +- name: Add a repository + shell: apt -y update + when: ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_major_version == '20' + +- name: Install locale needed + shell: 'locale-gen {{ item }}' + when: ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_major_version == '20' + loop: + - es_ES + - pt_BR + +- name: Update locale + shell: 'update-locale' + when: ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_major_version == '20' +## +# + +- name: install dependencies for postgresql test + package: + name: '{{ postgresql_package_item }}' + state: present + with_items: '{{ postgresql_packages }}' + loop_control: + loop_var: postgresql_package_item + +- name: Initialize postgres (RedHat systemd) + command: postgresql-setup initdb + when: ansible_os_family == "RedHat" and ansible_service_mgr == "systemd" + +- name: Initialize postgres (RedHat sysv) + command: /sbin/service postgresql initdb + when: ansible_os_family == "RedHat" and ansible_service_mgr != "systemd" + +- name: Initialize postgres (Debian) + shell: . /usr/share/postgresql-common/maintscripts-functions && set_system_locale && /usr/bin/pg_createcluster -u postgres {{ pg_ver }} main + args: + creates: /etc/postgresql/{{ pg_ver }}/ + when: ansible_os_family == 'Debian' + +- name: Copy pg_hba into place + template: + src: files/pg_hba.conf + dest: '{{ pg_hba_location }}' + owner: '{{ pg_user }}' + group: '{{ pg_group }}' + mode: '0644' + +- name: Generate locales (Debian) + locale_gen: + name: '{{ item }}' + state: present + with_items: + - pt_BR + - es_ES + when: ansible_os_family == 'Debian' + +- block: + - name: Install langpacks (RHEL8) + yum: + name: + - glibc-langpack-es + - glibc-langpack-pt + - glibc-all-langpacks + state: present + when: ansible_distribution_major_version is version('8', '>=') + + - name: Check if locales need to be generated (RedHat) + shell: localedef --list-archive | grep -a -q '^{{ locale }}$' + register: locale_present + ignore_errors: true + with_items: + - es_ES + - pt_BR + loop_control: + loop_var: locale + + - block: + - name: Reinstall internationalization files + command: yum -y reinstall glibc-common + rescue: + - name: Install internationalization files + yum: + name: glibc-common + state: present + when: locale_present is failed + + - name: Generate locale (RedHat) + command: localedef -f ISO-8859-1 -i {{ item.locale }} {{ item.locale }} + when: item is failed + with_items: '{{ locale_present.results }}' + when: ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora' + +- name: Install glibc langpacks (Fedora >= 24) + package: + name: '{{ item }}' + state: latest + with_items: + - glibc-langpack-es + - glibc-langpack-pt + when: ansible_distribution == 'Fedora' and ansible_distribution_major_version is version('24', '>=') + +- name: start postgresql service + service: name={{ postgresql_service }} state=started + +- name: Pause between start and stop + pause: + seconds: 5 + +- name: Kill all postgres processes + shell: 'pkill -u {{ pg_user }}' + become: true + when: ansible_facts.distribution == 'CentOS' and ansible_facts.distribution_major_version == '8' + ignore_errors: true + register: terminate + +- name: Stop postgresql service + service: name={{ postgresql_service }} state=stopped + when: terminate is not succeeded + +- name: Pause between stop and start + pause: + seconds: 5 + +- name: Start postgresql service + service: name={{ postgresql_service }} state=started + +- name: copy control file for dummy ext + copy: + src: dummy.control + dest: /usr/share/postgresql/{{ pg_ver }}/extension/dummy.control + mode: '0444' + when: ansible_os_family == 'Debian' + +- name: copy version files for dummy ext + copy: + src: '{{ item }}' + dest: /usr/share/postgresql/{{ pg_ver }}/extension/{{ item }} + mode: '0444' + with_items: + - dummy--0.sql + - dummy--1.0.sql + - dummy--2.0.sql + - dummy--3.0.sql + when: ansible_os_family == 'Debian' + +- name: add update paths + file: + path: /usr/share/postgresql/{{ pg_ver }}/extension/{{ item }} + mode: '0444' + state: touch + with_items: + - dummy--0--1.0.sql + - dummy--1.0--2.0.sql + - dummy--2.0--3.0.sql + when: ansible_os_family == 'Debian' + +- name: Get PostgreSQL version + become_user: '{{ pg_user }}' + become: true + shell: echo 'SHOW SERVER_VERSION' | psql --tuples-only --no-align --dbname postgres + register: postgres_version_resp + +- name: Print PostgreSQL server version + debug: + msg: '{{ postgres_version_resp.stdout }}' + +- import_tasks: ssl.yml + when: + - ansible_os_family == 'Debian' + - postgres_version_resp.stdout is version('9.4', '>=')