Skip to content

Commit

Permalink
[docs] postgres collation warning (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap authored Nov 11, 2022
1 parent 847a466 commit b755906
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ shell.nix

# ignore custom GOBIN path
/bin

# ignore config dirs from IDEs
/.idea/
/.fleet/
4 changes: 3 additions & 1 deletion docs/configuration/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ Then you should have already created database `gotosocial` in Postgres, and give
The psql commands to do this will look something like:

```psql
create database gotosocial;
create database gotosocial with locale C.UTF-8 template template0;
create user gotosocial with password 'some_really_good_password';
grant all privileges on database gotosocial to gotosocial;
```

GoToSocial makes use of ULIDs (Universally Unique Lexicographically Sortable Identifiers) which will not work in non-English collate environments. For this reason it is important to create the database with `C.UTF-8` locale. To do that on systems which were already initialized with non-C locale, `template0` pristine database template must be used.

## Settings

```yaml
Expand Down

0 comments on commit b755906

Please sign in to comment.