I'm reproducing following this doc a master-slave replication with PostgreSQL DB servers. In front of the cluster there is a pgpool instance as load balancer. So far so good.
The problem is when I query the database from the app and use specific functions from database which use some extensions like pg_trgm or pg_prewarm for giving an example. Every time the query is balanced to one of the slaves I receive an Exception telling me that the extension I'm trying to use is missing.
Could not access file $libdir/pg_trgm
When I check the extension list with \dx
on every database on master I receive the full list but on slaves it just pop plpgsql.
As the slaves are read-only servers I can't create the extensions there.
Is there a way I could replicate the extention creation to slaves servers?
Thanks in advance!