Re: how to output column names

From: Jon Sime <jsime(at)mediamatters(dot)org>
To: Michael Dengler <michael(dot)dengler(at)gmail(dot)com>
Cc: pgsql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: how to output column names
Date: 2007-04-19 17:49:43
Message-ID: 4627ABB7.8060306@mediamatters.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Michael Dengler wrote:
> Hi,
>
> Is there a query I can perform (perhaps on a system table) to return all
> of the column names (ONLY the column names) for a given DB? (I seem to
> remember doing this before but cant remember how)
>
> Thanks
>
> Mike
>

The 'columns' view in information_schema should do the trick for you.

-Jon

--
Senior Systems Developer
Media Matters for America
http://mediamatters.org/

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Dengler 2007-04-19 19:25:58 Re: how to output column names
Previous Message Michael Dengler 2007-04-19 17:06:25 how to output column names