Add unaccent extension

This commit is contained in:
Cédric Vanet
2015-02-27 11:33:46 +01:00
committed by Cédric Vanet
parent 638dd689bd
commit 9cca232ba0
3 changed files with 21 additions and 1 deletions
+12
View File
@@ -188,6 +188,18 @@ docker run --name postgresql -d \
This will make sure that the data stored in the database is not lost when the image is stopped and started again.
## Enable Unaccent (Search plain text with accent)
Unaccent is a text search dictionary that removes accents (diacritic signs) from lexemes. It's a filtering dictionary, which means its output is always passed to the next dictionary (if any), unlike the normal behavior of dictionaries. This allows accent-insensitive processing for full text search.
By default unaccent is configure to `false`
```bash
docker run --name postgresql -d \
-e 'DB_UNACCENT=true' \
sameersbn/postgresql:9.4
```
## Securing the server
By default a randomly generated password is assigned for the postgres user. The password is stored in a file named `pwfile` in the data store and is printed in the logs.