pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: John van Zantvoort <snl.jydawg@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: obtaining column names from tables or views
Date: Wed, 28 Nov 2007 15:29:23 +0000
Message-ID: <474D8953.6060900@archonet.com> (raw)
In-Reply-To: <872c5faa0711280713t4627c24fj2992abe1487df9ed@mail.gmail.com>
References: <872c5faa0711280713t4627c24fj2992abe1487df9ed@mail.gmail.com>

John van Zantvoort wrote:
> moin,
> 
> I've got a question. I'm scripting against an existing postgresql database
> environment and need to tweak queries based on the columns in the views or
> tables, how can if find these w/o querying the tables or views.

There is a whole section of the manual devoted to the system catalogues:
  http://www.postgresql.org/docs/8.2/static/catalogs.html
Or there's the "information schema" which is in a standardised layout 
but doesn't include PG-specific details.
  http://www.postgresql.org/docs/8.2/static/information-schema.html

-- 
   Richard Huxton
   Archonet Ltd



view thread (2+ messages)

Message-ID: <474D8953.6060900@archonet.com>
Permalink:  ../474D8953.6060900@archonet.com/
Also on:    postgresql.org/message-id/474D8953.6060900@archonet.com

 · 

reply

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-sql@postgresql.org
  Cc: dev@archonet.com, snl.jydawg@gmail.com
  Subject: Re: obtaining column names from tables or views
  In-Reply-To: <474D8953.6060900@archonet.com>

* 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