Skip to content

Commit 69010cb

Browse files
committedAug 14, 2020
feat(postgres): set max_prepared_transactions to 16
1 parent 4fe978e commit 69010cb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎postgres/Dockerfile.linux

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ ENV POSTGRES_PASSWORD=postgres
77
COPY healthcheck.sh /usr/local/bin/
88

99
RUN chmod u+x /usr/local/bin/healthcheck.sh
10+
RUN echo max_prepared_transactions = 16 >> /var/lib/postgresql/data/postgresql.conf
1011

1112
HEALTHCHECK --interval=5s --timeout=60s CMD ["healthcheck.sh"]

‎postgres/postgresql.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ shared_buffers = 128MB # min 128kB
123123
#huge_pages = try # on, off, or try
124124
# (change requires restart)
125125
#temp_buffers = 8MB # min 800kB
126-
#max_prepared_transactions = 0 # zero disables the feature
126+
max_prepared_transactions = 16 # zero disables the feature
127127
# (change requires restart)
128128
# Caution: it is not advisable to set max_prepared_transactions nonzero unless
129129
# you actively intend to use prepared transactions.

0 commit comments

Comments
 (0)