Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile-15
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ RUN sed -i \
#echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
usermod -aG postgres wal-g && \
mkdir -p /etc/postgresql-custom/conf.d && \
chown -R postgres:postgres /etc/postgresql-custom
Expand Down
1 change: 0 additions & 1 deletion Dockerfile-17
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ RUN sed -i \
#echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
usermod -aG postgres wal-g && \
mkdir -p /etc/postgresql-custom/conf.d && \
chown -R postgres:postgres /etc/postgresql-custom
Expand Down
1 change: 0 additions & 1 deletion Dockerfile-orioledb-17
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ RUN sed -i \
#echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
usermod -aG postgres wal-g && \
mkdir -p /etc/postgresql-custom/conf.d && \
chown -R postgres:postgres /etc/postgresql-custom
Expand Down
1 change: 1 addition & 0 deletions ansible/files/postgresql_config/conf.d/auto_explain.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto_explain.log_min_duration = 10s
1 change: 0 additions & 1 deletion ansible/files/postgresql_config/postgresql.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -773,5 +773,4 @@ include_dir = '/etc/postgresql-custom/conf.d' # include files ending in '.conf'
#------------------------------------------------------------------------------

# Add settings for extensions here
auto_explain.log_min_duration = 10s
cron.database_name = 'postgres'
11 changes: 11 additions & 0 deletions ansible/tasks/finalize-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
group: 'postgres'
src: 'files/postgresql_config/postgresql-csvlog.conf'

- name: auto_explain and pg_cron confs
ansible.builtin.template:
dest: "/etc/postgresql-custom/conf.d/{{ ext_item }}.conf"
group: 'postgres'
src: "files/postgresql_config/conf.d/{{ ext_item }}.conf"
loop:
- auto_explain
# - pg_cron
loop_control:
loop_var: 'ext_item'

- name: UFW - Allow SSH connections
community.general.ufw:
name: 'OpenSSH'
Expand Down
6 changes: 3 additions & 3 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ postgres_major:

# Full version strings for each major version
postgres_release:
postgresorioledb-17: "17.6.0.011-orioledb"
postgres17: "17.6.1.054"
postgres15: "15.14.1.054"
postgresorioledb-17: "17.6.0.011-orioledb-INDATA-255"
postgres17: "17.6.1.054-INDATA-255"
postgres15: "15.14.1.054-INDATA-255"

# Non Postgres Extensions
pgbouncer_release: 1.19.0
Expand Down
Loading