Hmm, I don't know enough to give you a confident answer yet. The provided knowledge sources do not contain specific information on how to integrate Ory Keto with PostgreSQL queries. However, Ory Keto is designed to manage and check permissions, which can be used to control what data a user can access. You might find it helpful to review the [Ory Keto documentation](
https://www.ory.sh/docs/keto/) for more information on how to use it for access control.