From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Juan <smalltalker(dot)marcelo(at)gmail(dot)com> |
Cc: | Marcos Luis Ortiz Valmaseda <marcosluis2186(at)googlemail(dot)com>, ๏̯͡๏ Guido Barosio <gbarosio(at)gmail(dot)com>, Ana Smail <anasmail(at)unnoba(dot)edu(dot)ar>, pgsql-es-ayuda <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Consulta sobre índices |
Date: | 2010-08-30 16:41:42 |
Message-ID: | 1283186422-sup-4306@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Excerpts from Juan's message of lun ago 30 12:35:37 -0400 2010:
> ERROR: no existe la función pg_relation_size(name)
> LINE 4: pg_size_pretty(pg_relation_size(idstat.relname)) AS table_si...
> ^
> HINT: Ninguna función coincide en el nombre y tipos de argumentos.
> Puede desear agregar conversión explícita de tipos.
>
> select version() me devuelbve esto en mi pgadmin
>
> "PostgreSQL 8.4.4, compiled by Visual C++ build 1400, 32-bit"
>
> SERA QUE ESA QUERY ES PARA UNA VERSON MAS VIEJA?
vaya, que raro. Agrega un cast a regclass:
... pg_size_pretty(pg_relation_size(idstat.relname::regclass)) AS ...
Creo que el Wiki necesita una correccion.
--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Juan | 2010-08-30 16:45:43 | Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Consulta sobre índices |
Previous Message | Juan | 2010-08-30 16:35:37 | Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Re: [pgsql-es-ayuda] Consulta sobre índices |