Merge pull request #28736 from hashicorp/jbardin/pg

pg backend requires PostgreSQL 10
This commit is contained in:
James Bardin 2021-05-18 09:58:49 -04:00 committed by GitHub
commit 9708e900eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.