You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [[source](http://www.postgresql.org/docs/9.4/static/unaccent.html)].
178
-
179
-
You can enable the unaccent extension on database(s) by specifying `DB_UNACCENT=true`. For example, the following command enables the unaccent extension for the `dbname` database.
180
-
181
-
```bash
182
-
docker run --name postgresql -itd \
183
-
--env 'DB_NAME=dbname' --env 'DB_UNACCENT=true' \
184
-
sameersbn/postgresql:9.4-16
185
-
```
186
-
187
-
*By default the unaccent extension is disabled*
188
-
189
174
## Granting user access to a database
190
175
191
176
If the `DB_USER` and `DB_PASS` variables are specified along with the `DB_NAME` variable, then the user specified in `DB_USER` will be granted access to all the databases listed in `DB_NAME`. Note that if the user and/or databases do not exist, they will be created.
@@ -211,6 +196,10 @@ docker run --name postgresql -itd \
211
196
212
197
The above command enables the `unaccent` and `pg_trgm` modules on the databases listed in `DB_NAME`, namely `db1` and `db2`.
213
198
199
+
> **NOTE**:
200
+
>
201
+
> This option deprecates the `DB_UNACCENT` parameter.
202
+
214
203
## Creating replication user
215
204
216
205
Similar to the creation of a database user, a new PostgreSQL replication user can be created by specifying the `REPLICATION_USER` and `REPLICATION_PASS` variables while starting the container.
0 commit comments