Skip to content

Commit 14f12ef

Browse files
authored
Merge pull request #1065 from infosiftr/postgres-waldir
Adjust "POSTGRES_INITDB_XLOGDIR" to "POSTGRES_INITDB_WALDIR" (with an added note for 9.x)
2 parents 915fd92 + fc99d32 commit 14f12ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

postgres/content.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ This optional environment variable can be used to define a different name for th
7272

7373
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"`.
7474

75-
### `POSTGRES_INITDB_XLOGDIR`
75+
### `POSTGRES_INITDB_WALDIR`
7676

7777
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.
7878

79+
**Note:** on PostgreSQL 9.x, this variable is `POSTGRES_INITDB_XLOGDIR` (reflecting [the changed name of the `--xlogdir` flag to `--waldir` in PostgreSQL 10+](https://wiki.postgresql.org/wiki/New_in_postgres_10#Renaming_of_.22xlog.22_to_.22wal.22_Globally_.28and_location.2Flsn.29)).
80+
7981
## Docker Secrets
8082

8183
As an alternative to passing sensitive information via environment variables, `_FILE` may be appended to the previously listed environment variables, causing the initialization script to load the values for those variables from files present in the container. In particular, this can be used to load passwords from Docker secrets stored in `/run/secrets/<secret_name>` files. For example:

0 commit comments

Comments
 (0)