Sign inSign up

warchantua/postgres-nondurable

By warchantua

•Updated almost 8 years ago

postgres:11-alpine without durability settings. This may be useful for unit tests.

Image
1

1.1K

warchantua/postgres-nondurable repository overview

non-durable-settings.sh:

#!/usr/bin/env bash
echo "################## NON-DURABLE SETTINGS ENABLED ##################"
# setting non-durable options
# https://www.postgresql.org/docs/current/static/non-durability.html
# no need to flush data to disk.
echo "fsync = off" >> /var/lib/postgresql/data/postgresql.conf
# no need to force WAL writes to disk on every commit.
echo "synchronous_commit = off" >> /var/lib/postgresql/data/postgresql.conf
# no need to guard against partial page writes.
echo "full_page_writes = off" >> /var/lib/postgresql/data/postgresql.conf

Dockerfile:

FROM postgres:11-alpine
COPY non-durable-settings.sh /docker-entrypoint-initdb.d/non-durable-settings.sh

Tag summary

Content type

Image

Digest

Size

27.1 MB

Last updated

almost 8 years ago

docker pull warchantua/postgres-nondurable:11-alpine