To my knowledge, cross-DB querying is limited in Postgres. So I wonder if there is a way to do the following.
Lets say I have 3 Postgres DBs (A, B and C) with each having the same schema, but different data. They each have a users table. I want to query the count of users in each, grouped by DB.
Like such:
| DB | User Count |
|---|---|
| A | 90 |
| B | 12 |
| C | 59 |
Not necessarily looking for a solution within Postgres. An external tool will also suffice.