Re: funcion select pg_table_size da 0 (cero)

From: Juan <smalltalker(dot)marcelo(at)gmail(dot)com>
To: Lazáro Rubén García Martínez <lgarciam(at)vnz(dot)uci(dot)cu>
Cc: Ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: funcion select pg_table_size da 0 (cero)
Date: 2012-07-11 17:01:26
Message-ID: CAKizN9zxzQmL9TRQi6XFwCw9ozSOkbA-sgk=4yLj4iF5rc+_3A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Lazaro

gracias por tu respuesta , pero aun asi, pg_total_relation_size
en unas pocas tablas da 0. imagino que no es 0 porque tiene campos.
mas data, postgresql 9.1 servidor redhat .
de todos modos es mejor que la anterior.

saludos
jmdc

2012/7/11 Lazáro Rubén García Martínez <lgarciam(at)vnz(dot)uci(dot)cu>

> Si quieres saber el tamaño de una base de datos debes usar la función
> pg_database_size, para calcular el tamaño de una tabla incluyendo índices y
> toast debes usar pg_total_relation_size.
>
> Saludos.
> ________________________________________
> From: pgsql-es-ayuda-owner(at)postgresql(dot)org [
> pgsql-es-ayuda-owner(at)postgresql(dot)org] On Behalf Of Juan [
> smalltalker(dot)marcelo(at)gmail(dot)com]
> Sent: Wednesday, July 11, 2012 12:15 PM
> To: Ayuda
> Subject: [pgsql-es-ayuda] funcion select pg_table_size da 0 (cero)
>
> Gente
>
> ME pidieron que calcule cuanto ocupa una base de datos. lo comente por
> aqui antes
> y me sugirieron que utiliazara la funcion select pg_table_size
> pero dicha funcion con algunas tablas me devuelve 0
> alguna idea de porque ?
> estoy haciendo algo errado?
>
> salu2
>
> jmdc
>
>
>
> ________________________________
> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE
> ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
> http://www.antiterroristas.cu
> http://justiciaparaloscinco.wordpress.com
>
> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE
> ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
> http://www.antiterroristas.cu
> http://justiciaparaloscinco.wordpress.com
>

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Ernesto Verbanaz 2012-07-11 17:03:30 Re: funcion select pg_table_size da 0 (cero)
Previous Message Lazáro Rubén García Martínez 2012-07-11 17:00:19 RE: Comparacion entre dos Bases de Datos.