From 67034e9d8c06e0a6e225e076e8e4db7dc83b0863 Mon Sep 17 00:00:00 2001 From: Dragos Campean Date: Fri, 23 Feb 2024 18:56:26 +0200 Subject: [PATCH] Set 128 max locks per transaction --- 13-3.4/alpine/Dockerfile | 6 +++++- 13-3.4/alpine/init.sql | 1 + 14-3.4/alpine/Dockerfile | 6 +++++- 14-3.4/alpine/init.sql | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 13-3.4/alpine/init.sql create mode 100644 14-3.4/alpine/init.sql diff --git a/13-3.4/alpine/Dockerfile b/13-3.4/alpine/Dockerfile index 0ca3c1b..6c1c910 100644 --- a/13-3.4/alpine/Dockerfile +++ b/13-3.4/alpine/Dockerfile @@ -1 +1,5 @@ -FROM docker.io/postgis/postgis:13-3.4-alpine \ No newline at end of file +FROM docker.io/postgis/postgis:13-3.4-alpine + +# initialize db with custom settings +COPY init.sql /docker-entrypoint-initdb.d/ +RUN chmod a+r /docker-entrypoint-initdb.d/* \ No newline at end of file diff --git a/13-3.4/alpine/init.sql b/13-3.4/alpine/init.sql new file mode 100644 index 0000000..7901dd5 --- /dev/null +++ b/13-3.4/alpine/init.sql @@ -0,0 +1 @@ +ALTER SYSTEM SET max_locks_per_transaction = 128; \ No newline at end of file diff --git a/14-3.4/alpine/Dockerfile b/14-3.4/alpine/Dockerfile index ca89289..661bd90 100644 --- a/14-3.4/alpine/Dockerfile +++ b/14-3.4/alpine/Dockerfile @@ -1 +1,5 @@ -FROM docker.io/postgis/postgis:14-3.4-alpine \ No newline at end of file +FROM docker.io/postgis/postgis:14-3.4-alpine + +# initialize db with custom settings +COPY init.sql /docker-entrypoint-initdb.d/ +RUN chmod a+r /docker-entrypoint-initdb.d/* \ No newline at end of file diff --git a/14-3.4/alpine/init.sql b/14-3.4/alpine/init.sql new file mode 100644 index 0000000..7901dd5 --- /dev/null +++ b/14-3.4/alpine/init.sql @@ -0,0 +1 @@ +ALTER SYSTEM SET max_locks_per_transaction = 128; \ No newline at end of file