“Ukuran basis data Postgres” Kode Jawaban

cara mendapatkan ukuran database di postgresql

SELECT pg_size_pretty( pg_database_size('dbname') );
Cloudy Caiman

Ukuran basis data Postgres

/* For multiple databases */
select t1.datname AS db_name,  
       pg_size_pretty(pg_database_size(t1.datname)) as db_size
from pg_database t1
order by pg_database_size(t1.datname) desc;
mcornel

Temukan ukuran semua postgres db

CopySELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER by size_in_mb DESC;
Excited Elk

Jawaban yang mirip dengan “Ukuran basis data Postgres”

Pertanyaan yang mirip dengan “Ukuran basis data Postgres”

Lebih banyak jawaban terkait untuk “Ukuran basis data Postgres” di Sql

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya