pg_trgm extension can't be enabled during database migrations
Customer was following the instructions from http://docs.gitlab.com/ee/administration/high_availability/database.html to run database and application on separate nodes. Running
gitlab-ctl reconfigure would error when it reached the database migrations step. The migration was trying to enable the
pg_trgm extension as the
gitlab database user, but the extension requires superuser privileges to install.
We should change the installation of the
pg_trgm extension to make sure it is always enabled by the