For a particular table,
SELECT pg_size_pretty( pg_total_relation_size('tablename') );
| version: "3" | |
| services: | |
| roach1: | |
| container_name: roach1 | |
| image: cockroachdb/cockroach:v1.1.3 | |
| command: start --insecure | |
| ports: | |
| - "26257:26257" | |
| - "8080:8080" | |
| volumes: |
| { | |
| "variables": { | |
| "name": "coreos-baseimage", | |
| "release": "stable", | |
| "iso_checksum": "", | |
| "iso_checksum_type": "none", | |
| "disk_size": "40000", | |
| "cpus": "4", | |
| "memory": "2048", | |
| "boot_wait": "15s", |