pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Burne <robburne@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Help with displaying data types.
Date: Thu, 16 Nov 2000 23:25:22 GMT
Message-ID: <F76OeIiGXix4A2DreBB0000154f@hotmail.com> (raw)

I am trying to perform a query that will:

1. Return all user defined attributes from a relation.

2. Also return the datatypes of each relation.

So far I can only achieve part 1 with the following:

select attname from pg_class,pg_attribute
where relname=relation_name and
attrelid = pg_class.oid and
atttypid != 26 and
atttypid != 27 and
atttypid != 28 and
atttypid != 29;

But what do I need to add to return the datatype of each attribute. Any 
suggestions please?

Regards,

Rob.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




view thread (2+ messages)  latest in thread

Message-ID: <F76OeIiGXix4A2DreBB0000154f@hotmail.com>
Permalink:  ../F76OeIiGXix4A2DreBB0000154f@hotmail.com/
Also on:    postgresql.org/message-id/F76OeIiGXix4A2DreBB0000154f@hotmail.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 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-sql@postgresql.org
  Cc: robburne@hotmail.com
  Subject: Re: Help with displaying data types.
  In-Reply-To: <F76OeIiGXix4A2DreBB0000154f@hotmail.com>
  References: <F76OeIiGXix4A2DreBB0000154f@hotmail.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