From 5c07835bd5a6ecb860884c81681cdf8dcdc334b9 Mon Sep 17 00:00:00 2001 From: Diego Date: Tue, 19 Sep 2023 14:21:10 -0300 Subject: [PATCH] adding config views --- sql/Config/pg_all.sql | 3 +++ sql/Config/pg_hba.sql | 1 + sql/Config/pg_settings.sql | 1 + 3 files changed, 5 insertions(+) create mode 100644 sql/Config/pg_all.sql create mode 100644 sql/Config/pg_hba.sql create mode 100644 sql/Config/pg_settings.sql diff --git a/sql/Config/pg_all.sql b/sql/Config/pg_all.sql new file mode 100644 index 0000000..b5af4a4 --- /dev/null +++ b/sql/Config/pg_all.sql @@ -0,0 +1,3 @@ +select 'select * from ' || table_name || ';' from information_schema.views where table_name like 'pg_%'; +\g /tmp/pg_all.sql +\i /tmp/pg_all.sql \ No newline at end of file diff --git a/sql/Config/pg_hba.sql b/sql/Config/pg_hba.sql new file mode 100644 index 0000000..1f09989 --- /dev/null +++ b/sql/Config/pg_hba.sql @@ -0,0 +1 @@ +select * from pg_hba_file_rules; \ No newline at end of file diff --git a/sql/Config/pg_settings.sql b/sql/Config/pg_settings.sql new file mode 100644 index 0000000..34bcaad --- /dev/null +++ b/sql/Config/pg_settings.sql @@ -0,0 +1 @@ +select * from pg_settings; \ No newline at end of file