Skip to content
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

4341 users can now set locale related vars default charset default collation default ctype for postgresql #4349

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 12 additions & 0 deletions sites/platform/src/add-services/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,18 @@ Taking a backup or a database export before doing so is strongly recommended.
To ensure people who review code changes can't access personally identifiable information stored in your database,
[sanitize your preview environments](../development/sanitize-db/postgresql.md).

## Set locale for database

You can choose your locale when a database is created by setting locale-related variables. There are three ways to set a locale option, as detailed in the table below:


| Name | Type | Default | Description |
|--------|-----------|----------|--------------|
| `default_ctype` | `string` | `C.UTF-8` | The default character classification. Affects any tables created after it's set.|
| `default_collation` | `string`|`C.UTF-8`| The default collation rules. Affects any tables created after it's set.|
| `default_charset` | `string` | `UTF8` | The default encoding character set. Affects any tables created after it's set.|


## Multiple databases

If you are using version `10`, `11`, `12`, `13`, or later of this service,
Expand Down
12 changes: 12 additions & 0 deletions sites/upsun/src/add-services/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,18 @@ Taking a backup or a database export before doing so is strongly recommended.
To ensure people who review code changes can't access personally identifiable information stored in your database,
[sanitize your preview environments](../development/sanitize-db/postgresql.md).

## Set locale for database

You can choose your locale when a database is created by setting locale-related variables. There are three ways to set a locale option, as detailed in the table below:


| Name | Type | Default | Description |
|--------|-----------|----------|--------------|
| `default_ctype` | `string` | `C.UTF-8` | The default character classification. Affects any tables created after it's set.|
| `default_collation` | `string`|`C.UTF-8`| The default collation rules. Affects any tables created after it's set.|
| `default_charset` | `string` | `UTF8` | The default encoding character set. Affects any tables created after it's set.|


## Multiple databases

If you are using version `10`, `11`, `12`, `13`, or later of this service,
Expand Down
Loading