mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
We need to disable "CREATE EXTENSION pgroonga" in zulip-puppet-apply by creating /usr/share/postgresql/10/pgroonga_setup.sql.applied. Because PostgreSQL 10 isn't running in this case. If PostgreSQL 10 isn't running, we can't run "CREATE EXTENSION pgroonga". We can't use pg_upgrade with PGroonga. PGroonga's install SQL https://github.com/pgroonga/pgroonga/blob/master/data/pgroonga.sql has conditions to support multiple PostgreSQL versions. So it's not safe to use pg_upgrade. pg_upgrade copies metadata for PostgreSQL 9.5 to PostgreSQL 10. We need to use pg_dump and pg_restore to upgrade PGroonga correctly for PostgreSQL 10.