pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scot L. Harris <webid@cfl.rr.com>
To: pgsql-php@postgresql.org
Subject: Re: table column information
Date: Tue, 18 May 2004 18:02:12 -0400
Message-ID: <1084917731.2058.293.camel@lathe> (raw)
In-Reply-To: <200405181753.35869.xzilla@users.sourceforge.net>
References: <1084749506.2056.148.camel@lathe>
	<1084789582.27913.7.camel@lamb.mcmillan.net.nz>
	<1084829504.2059.187.camel@lathe>
	<200405181753.35869.xzilla@users.sourceforge.net>

On Tue, 2004-05-18 at 17:53, Robert Treat wrote:
> A little late to the party, but it seems worth mentioning that this 
> information is also available in the information_schema, which has the 
> benefits of being sql complient, stable across releases, and keeps you out of 
> the system catalogs.  for example:
> 
> cms74=# select column_name from information_schema.columns where table_name = 
> 'current_downloads';
>  column_name 
> -------------
>  start_time
>  entity_id
> (2 rows)
> 
> for more on information schema check out 
> http://www.postgresql.org/docs/7.4/interactive/information-schema.html
> 
> Robert Treat

That looks like a nice way to get that information.  Thanks for another
good tip.


-- 
Scot L. Harris <webid@cfl.rr.com>




view thread (11+ messages)

Message-ID: <1084917731.2058.293.camel@lathe>
Permalink:  ../1084917731.2058.293.camel@lathe/
Also on:    postgresql.org/message-id/1084917731.2058.293.camel@lathe

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: webid@cfl.rr.com
  Subject: Re: table column information
  In-Reply-To: <1084917731.2058.293.camel@lathe>
  References: <1084749506.2056.148.camel@lathe> <1084789582.27913.7.camel@lamb.mcmillan.net.nz> <1084829504.2059.187.camel@lathe> <200405181753.35869.xzilla@users.sourceforge.net> <1084917731.2058.293.camel@lathe>

* 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