pg requires PostgreSQL 10

This commit is contained in:
James Bardin 2021-05-18 09:39:05 -04:00
parent e39ba2816b
commit 51a171c7f4
1 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,7 @@ description: |-
**Kind: Standard (with locking)**
Stores the state in a [Postgres database](https://www.postgresql.org) version 9.5 or newer.
Stores the state in a [Postgres database](https://www.postgresql.org) version 10 or newer.
This backend supports [state locking](/docs/language/state/locking.html).
@ -30,7 +30,7 @@ Before initializing the backend with `terraform init`, the database must already
createdb terraform_backend
```
This `createdb` command is found in [Postgres client applications](https://www.postgresql.org/docs/9.5/reference-client.html) which are installed along with the database server.
This `createdb` command is found in [Postgres client applications](https://www.postgresql.org/docs/10/reference-client.html) which are installed along with the database server.
We recommend using a
[partial configuration](/docs/language/settings/backends/configuration.html#partial-configuration)
@ -79,8 +79,6 @@ The following configuration options or environment variables are supported:
## Technical Design
Postgres version 9.5 or newer is required to support advisory locks and the "ON CONFLICT" upsert syntax.
This backend creates one table **states** in the automatically-managed Postgres schema configured by the `schema_name` variable.
The table is keyed by the [workspace](/docs/language/state/workspaces.html) name. If workspaces are not in use, the name `default` is used.