From: Tom Lane <tgl@sss.pgh.pa.us>
To: Colton A Smith <smith@cs.utk.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: strange system columns
Date: Thu, 12 Jan 2006 00:11:16 -0500
Message-ID: <1325.1137042676@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.62.0601051447080.7355@cetus5.cs.utk.edu>
References: <Pine.LNX.4.62.0601051447080.7355@cetus5.cs.utk.edu>
Colton A Smith <smith@cs.utk.edu> writes:
> SELECT attname, typname, attnum
> FROM pg_attribute INNER JOIN pg_type
> ON pg_attribute.atttypid = pg_type.typelem
> WHERE pg_attribute.attrelid = $oid (derived above)
> AND NOT attisdropped;
I think you meant to join to pg_type.oid, not pg_type.typelem.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, smith@cs.utk.edu
Subject: Re: strange system columns
In-Reply-To: <1325.1137042676@sss.pgh.pa.us>
References: <Pine.LNX.4.62.0601051447080.7355@cetus5.cs.utk.edu> <1325.1137042676@sss.pgh.pa.us>
* 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