Skip to content

docs: Setup external PostgreSQL server #4901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use user:password pattern
  • Loading branch information
mtojek committed Nov 4, 2022
commit 800cff299ae7cfc6c9dde6551ebb0edd168c298d
4 changes: 2 additions & 2 deletions docs/install/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Coder configuration is defined via [environment variables](../admin/configure.md
The database client requires the connection string provided via the `CODER_PG_CONNECTION_URL` variable.

```sh
export CODER_PG_CONNECTION_URL="postgres://coder@localhost/coder?password=secret42&sslmode=disable"
export CODER_PG_CONNECTION_URL="postgres://coder:secret42@localhost/coder?sslmode=disable"
```

## Custom schema
Expand All @@ -50,7 +50,7 @@ Once the schema is created, you can list all schemas with `\dn`:
In this case the database client requires the modified connection string:

```sh
export CODER_PG_CONNECTION_URL="postgres://coder@localhost/coder?password=secret42&sslmode=disable&search_path=myschema"
export CODER_PG_CONNECTION_URL="postgres://coder:secret42@localhost/coder?sslmode=disable&search_path=myschema"
```

The `search_path` parameter determines the order of schemas in which they are visited while looking for a specific table.
Expand Down