El 17/02/2011 20:38, Miguel Angel Hernandez Moreno escribió:
saludos lista
me gustaria saber cuanto es que pesa?
algo asi como un
pg_column_size
pero para las tablas
gracias
--
ISC Miguel Angel Hernandez Moreno
mira a ver estas funciones
||pg_relation_size|(/|relation|/ |regclass|, /|fork|/ |text|)|
|bigint| Disk space used by the specified fork (|'main'|, |'fsm'| or
|'vm'|) of the table or index with the specified OID or name
||pg_relation_size|(/|relation|/ |regclass|)| |bigint| Shorthand for
|pg_relation_size(..., 'main')|
o algo como
SELECT pg.relname AS "Tabla", pg_size_pretty((relpages*8)::bigint*1024)
AS "TamaƱo estimado"
FROM pg_class pg
where relname='tu tabla'