commit: e0ba132bce735a5c429fa2280ce90d99fb02ae10
parent b0721ddbf5c0e32fdab6fda09855b061cc0fb1e1
Author: Phantasm <phantasm@centrum.cz>
Date: Tue, 26 Nov 2024 14:53:02 +0100
docs openbsd: ensure db has UTF-8 enconding
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/installation/openbsd_en.md b/docs/installation/openbsd_en.md
@@ -41,7 +41,7 @@ Switch to the \_postgresql user and initialize PostgreSQL:
```
# su _postgresql
-$ initdb -D /var/postgresql/data -U postgres
+$ initdb -D /var/postgresql/data -U postgres --encoding=utf-8 --lc-collate=C
```
Running PostgreSQL in a different directory than `/var/postgresql/data` requires changing the `daemon_flags` variable in the `/etc/rc.d/postgresql` script.