Hello,
I'm new in Postrgres technologies and I have to retrieve tablespaces usage on a postgreSQL instance. I can use either a select statement or a view.

In the documentation i found the system function "pg_tablespace_size" but is it possible to use it in a loop fetching all tablespaces ?