I am looking for a way to list PostgreSQL Database Data and Log sizes.
Using the following command we can check the total database size based on the documentation https://pgpedia.info/p/pg_database_size.html
pg_database_size('database_name')
I am not really sure if this function displays data and logs summarized together. Is there any way to get these numbers separately, so we can know how much is the data files and how much is the log files?