Skip to content

Commit 64ccf5e

Browse files
authored
Merge pull request #872 from DanielDent/patch-1
Document postgres POSTGRES_INITDB_XLOGDIR variable
2 parents c1400b5 + cc09a2e commit 64ccf5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

postgres/content.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ This optional environment variable can be used to define a different name for th
6868

6969
This optional environment variable can be used to send arguments to `postgres initdb`. The value is a space separated string of arguments as `postgres initdb` would expect them. This is useful for adding functionality like data page checksums: `-e POSTGRES_INITDB_ARGS="--data-checksums"`.
7070

71+
### `POSTGRES_INITDB_XLOGDIR`
72+
73+
This optional environment variable can be used to define another location for the Postgres transaction log. By default the transaction log is stored in a subdirectory of the main Postgres data folder (`PGDATA`). Sometimes it can be desireable to store the transaction log in a different directory which may be backed by storage with different performance or reliability characteristics.
74+
7175
## Arbitrary `--user` Notes
7276

7377
As of [docker-library/postgres#253](https://github.com/docker-library/postgres/pull/253), this image supports running as a (mostly) arbitrary user via `--user` on `docker run`.

0 commit comments

Comments
 (0)