From 666bf81f4de0ab797c021384e94e3971198214d4 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 27 Jan 2020 13:28:07 +0000 Subject: [PATCH] Change postgres in docker image to use C collation/ctype. (#783) This is what Synapse recommends, so we should test it. --- docker/base.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/base.Dockerfile b/docker/base.Dockerfile index f5fda55fa..b06b63535 100644 --- a/docker/base.Dockerfile +++ b/docker/base.Dockerfile @@ -59,7 +59,7 @@ RUN dos2unix /bootstrap.sh ENV PGHOST=/var/run/postgresql ENV PGDATA=$PGHOST/data ENV PGUSER=postgres -RUN for ver in `ls /usr/lib/postgresql | head -n 1`; do su -c '/usr/lib/postgresql/'$ver'/bin/initdb -E "UTF-8" --lc-collate="en_US.UTF-8" --lc-ctype="en_US.UTF-8" --username=postgres' postgres; done +RUN for ver in `ls /usr/lib/postgresql | head -n 1`; do su -c '/usr/lib/postgresql/'$ver'/bin/initdb -E "UTF-8" --lc-collate="C" --lc-ctype="C" --username=postgres' postgres; done # Turn off all the fsync stuff for postgres -RUN for ver in /etc/postgresql/*/main; do mkdir -p $ver/conf.d/; echo -e "fsync=off\nfull_page_writes=off" >> $ver/conf.d/fsync.conf; done \ No newline at end of file +RUN for ver in /etc/postgresql/*/main; do mkdir -p $ver/conf.d/; echo -e "fsync=off\nfull_page_writes=off" >> $ver/conf.d/fsync.conf; done