From: Jon Sime <jsime@mediamatters.org>
To: Michael Dengler <michael.dengler@gmail.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: how to output column names
Date: Thu, 19 Apr 2007 13:49:43 -0400
Message-ID: <4627ABB7.8060306@mediamatters.org> (raw)
In-Reply-To: <e8733d090704191006x67b04219hb101564dabd5a4f0@mail.gmail.com>
References: <e8733d090704191006x67b04219hb101564dabd5a4f0@mail.gmail.com>
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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jsime@mediamatters.org, michael.dengler@gmail.com
Subject: Re: how to output column names
In-Reply-To: <4627ABB7.8060306@mediamatters.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox