Can one call pg_total_relation_size over foreign data wrapper? - Mailing list pgsql-general

From Ketan Popat
Subject Can one call pg_total_relation_size over foreign data wrapper?
Date
Msg-id CAKx+mvaT_9kNP8zv+d1-xwSxwub8254pN4LP942oN+fZBefrGA@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi Team,

Can one call pg_total_relation_size over foreign data wrapper?

Problem statement - I need to connect to 100s of databases over foreign data wrapper to collect the size of each table. As a part of that I have to use pg_total_relation_size over foreign data wrappers.

Alternatively, I would have to create a view and expose that view as a foreign table, I have tested and it seems working. However, I want to avoid it unless that is the only and best option.

Other innovative ideas/suggestions are welcome and thanks for your help in advance!

Thanks,
Ketan

pgsql-general by date:

Previous
From: Yudianto Prasetyo
Date:
Subject: Re: what is the solution like oracle DB's datafile
Next
From: Merlin Moncure
Date:
Subject: Re: pg_try_advisory_lock is waiting?