Update recorder docs - create PostgreSQL database with utf8 encoding (#16077)

* Update recorder docs - create PostgreSQL database with utf8 encoding

ref https://github.com/home-assistant/core/issues/44595

The issue appears to be caused by the PostgreSQL database not using `utf8` encoding. PostgreSQL default is `SQL_ASCII`.

Recreated the database with `utf8` encoding and the errors were not seen.

* Update recorder.markdown

Add in the change to the `db_url` option

* Update recorder.markdown

Spelling error
This commit is contained in:
Brian Orpin 2021-02-17 07:43:37 +00:00 committed by GitHub
parent 2c4f420f8e
commit 2c55d9c555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -319,6 +319,14 @@ Once Home Assistant finds the database, with the right level of permissions, all
### PostgreSQL ### PostgreSQL
Create the PostgreSQL database with `utf8` encoding. The PostgreSQL default encoding is `SQL_ASCII`. From the `postgres` user account;
```bash
createdb -E utf8 DB_NAME
```
Where `DB_NAME` is the name of your database
If the Database in use is not `utf8`, adding `?client_encoding=utf8` to the `db_url` may solve any issue.
For PostgreSQL you may have to install a few dependencies: For PostgreSQL you may have to install a few dependencies:
```bash ```bash