Error:
If cxs who are using external postgres(not bundled postgres) faces below error,
1. Migration fails with "Upgrade halted. Please create postgres extension pg_trgm and try again" error. (or)
2. Start-up fails with "Application startup halted. Please create postgres extension pg_trgm and try again" error.
Solution:
Issue is due to unavailability of needed postgres extension. Ask cx to follow below steps to resolve this.
1. Ask cx to start the DB server using startDB.sh or startDB.bat and connect to postgres as superuser. (Username: Postgres and Password: <Super User Password>)
2. Ask cx to execute below queries
CREATE EXTENSION IF NOT EXISTS "pg_stat_statements";
CREATE EXTENSION IF NOT EXISTS "pg_trgm";
3. Ask cx to execute below command in pgsql server and ensure whether pg_stat_statements and pg_trgm extensions are listed in the output.
\dx
4. Ask cx to stop the DB server using stopDB.sh or stopDB.bat and redo the migration/start-up again.