-- Runs once, on first cluster init (docker-entrypoint-initdb.d), connected to $POSTGRES_DB as $POSTGRES_USER. -- The migrations also CREATE EXTENSION IF NOT EXISTS; doing it here guarantees they exist even for -- restore targets and ad-hoc databases created later from template1. CREATE EXTENSION IF NOT EXISTS pg_trgm; CREATE EXTENSION IF NOT EXISTS unaccent; CREATE EXTENSION IF NOT EXISTS pg_stat_statements; \connect template1 CREATE EXTENSION IF NOT EXISTS pg_trgm; CREATE EXTENSION IF NOT EXISTS unaccent;