Are there queries to get Database and Table sizes?

Are there any queries than can be run to get the size of a database and size of a table?

Something like pg_total_relation_size and pg_database_size?

I know the information is available from the admin page, but is it accessible with queries?

Hi @tshannon. Unfortunately not yet. There’s an issue tracking this if you’d like to weigh in on getting this prioritized: https://github.com/cockroachdb/cockroach/issues/20712

Thanks for the issue link. I was searching around and couldn’t find one.

How to check database creation date & size in admin page ??

Please guide me @tshannon