Re: Report all Comments

From: Ashish Karalkar <ashishka(at)synechron(dot)com>
To: paulo matadr <saddoness(at)yahoo(dot)com(dot)br>
Cc: GENERAL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Report all Comments
Date: 2009-03-18 13:34:45
Message-ID: 49C0F875.9010504@synechron.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

paulo matadr wrote:
> Hi all, i need make a report of all comments in the all tables.
> Where postgres storage it?
> Thanks
>
>
> ------------------------------------------------------------------------
> Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/>
> - Celebridades
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/>
> - Música
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/>
> - Esportes
> <http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/>
Hoe this will help you

SELECT pn.nspname,pc.relname,ic.column_name,pd.description
FROM pg_catalog.pg_class pc,information_schema.columns ic ,
pg_catalog.pg_description pd,pg_catalog.pg_namespace pn
WHERE pc.oid=pd.objoid
AND pc.relname=ic.table_name
AND ic.ordinal_position=pd.objsubid
AND pc.relnamespace=pn.oid
AND pn.nspname in ('public')
ORDER BY pn.nspname,pc.relname,ic.ordinal_position;

With Regards
--Ashish Karalkar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Stark 2009-03-18 13:35:23 Re: Query 4-5 times slower after ANALYZE
Previous Message paulo matadr 2009-03-18 13:20:52 Report all Comments