From 89644c56e8d7b6e942d518946e9ea6b2f37cc3c6 Mon Sep 17 00:00:00 2001 From: Xetera Date: Mon, 2 Feb 2026 21:02:17 +0300 Subject: [PATCH] fix: increase max locks per transaction from 64 to 256 This fixes a problem where certain long running transactions time out --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 1456b15..0304d0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -135,6 +135,7 @@ ENV POSTGRES_URL=postgresql://postgres@localhost/postgres?host=/tmp CMD ["/bin/bash", "-c", "\ su-exec postgres initdb -D $PGDATA || true && \ echo \"shared_preload_libraries = 'timescaledb,pg_stat_statements'\" >> $PGDATA/postgresql.conf && \ + echo \"max_locks_per_transaction = 256\" >> $PGDATA/postgresql.conf && \ echo \"listen_addresses = ''\" >> $PGDATA/postgresql.conf && \ echo \"unix_socket_directories = '/tmp'\" >> $PGDATA/postgresql.conf && \ su-exec postgres pg_ctl -D $PGDATA -l $PGDATA/logfile start || (cat $PGDATA/logfile && exit 1) && \