This command creates the view where you can access the collected statistics.
We recommend that you create the extension for the postgres database. In this case, you receive access to the statistics collected from every database.
Thank you nurlan for responding.
Just confirming , I am unable to query pg_stat_statements view from other dbs since i executed create extension only for postgres db, but as you said this should work fine.
We dont need to run this individually on each database.