CQRS and read query

Multiple Postgres clusters and async sync of schemas.
Multiple keycloak instances connecting to different psql clusters.
I have set up async replication of schemas in postgres. keycloak#1 will use psql#1, keycloak#2 will use psql#2 and so on.
The replication is such that the db reads will have to be from a view and writes is to a table. How can I change the read queries of Keycloak to use the view instead of the table?