-- Instrumentation for the scaling experiments. pg_stat_statements only works -- when the server is started with shared_preload_libraries=pg_stat_statements -- (compose.yaml does that); without the preload the CREATE fails with a plain -- notice, so a database started without the preload still migrates cleanly. DO $$ BEGIN CREATE EXTENSION IF NOT EXISTS pg_stat_statements; EXCEPTION WHEN OTHERS THEN RAISE NOTICE 'pg_stat_statements unavailable: %', SQLERRM; END $$;