#### (Optional) Installing RUM indexes
RUM indexes are an alternative indexing scheme that is not included in PostgreSQL by default. You can read more about them on the [Configuration page](config.html#rum-indexing-for-full-text-search). They are completely optional and most of the time are not worth it, especially if you are running a single user instance (unless you absolutely need ordered search results).
-Debian/Ubuntu:
+Debian/Ubuntu (available only on Buster/19.04):
```sh
-apt install postgresql-rum
+apt install postgresql-11-rum
```
Alpine:
```sh
# Create the postgres database
psql -U postgres -d postgres -f /tmp/setup_db.psql
+# If you have installed RUM indexes add
+# `config :pleroma, :database, rum_enabled: true`
+# to the end of /etc/pleroma/config.exs before proceeding
+
# Create the database schema
./bin/pleroma_ctl create
./bin/pleroma_ctl migrate
+# If you have installed RUM indexes also run
+./bin/pleroma_ctl migrate --migrations-path priv/repo/optional_migrations/rum_indexing/
+
# Start the instance to verify that everything is working as expected
./bin/pleroma daemon