Skip to content

Commit d92c8d7

Browse files
Merge pull request #4349 from platformsh/4341-users-can-now-set-locale-related-vars-default_charset-default_collation-default_ctype-for-postgresql
4341 users can now set locale related vars default charset default collation default ctype for postgresql
2 parents c39a264 + df29b76 commit d92c8d7

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

sites/platform/src/add-services/postgresql.md

+12
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,18 @@ Taking a backup or a database export before doing so is strongly recommended.
365365
To ensure people who review code changes can't access personally identifiable information stored in your database,
366366
[sanitize your preview environments](../development/sanitize-db/postgresql.md).
367367

368+
## Set locale for database
369+
370+
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:
371+
372+
373+
| Name | Type | Default | Description |
374+
|--------|-----------|----------|--------------|
375+
| `default_ctype` | `string` | `C.UTF-8` | The default character classification. Affects any tables created after it's set.|
376+
| `default_collation` | `string`|`C.UTF-8`| The default collation rules. Affects any tables created after it's set.|
377+
| `default_charset` | `string` | `UTF8` | The default encoding character set. Affects any tables created after it's set.|
378+
379+
368380
## Multiple databases
369381

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

sites/upsun/src/add-services/postgresql.md

+12
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,18 @@ Taking a backup or a database export before doing so is strongly recommended.
483483
To ensure people who review code changes can't access personally identifiable information stored in your database,
484484
[sanitize your preview environments](../development/sanitize-db/postgresql.md).
485485

486+
## Set locale for database
487+
488+
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:
489+
490+
491+
| Name | Type | Default | Description |
492+
|--------|-----------|----------|--------------|
493+
| `default_ctype` | `string` | `C.UTF-8` | The default character classification. Affects any tables created after it's set.|
494+
| `default_collation` | `string`|`C.UTF-8`| The default collation rules. Affects any tables created after it's set.|
495+
| `default_charset` | `string` | `UTF8` | The default encoding character set. Affects any tables created after it's set.|
496+
497+
486498
## Multiple databases
487499

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

0 commit comments

Comments
 (0)