From: Alvaro Herrera <alvherre@dcc.uchile.cl>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: field names
Date: Sat, 23 Apr 2005 00:24:01 -0400
Message-ID: <20050423042401.GA2260@dcc.uchile.cl> (raw)
In-Reply-To: <4267F301.7050205@virginia.edu>
References: <4267F301.7050205@virginia.edu>
On Thu, Apr 21, 2005 at 02:37:53PM -0400, Jodi Kanter wrote:
> I'd like to check field names for various tables in our code. Is there a
> system table that lists the field names of each table? ...some way to
> query this information to run an error check?
Yes, pg_attribute. Or you could check the information_schema. See the
docs on "system catalogs" in the Internals chapter.
--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)
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: alvherre@dcc.uchile.cl, jkanter@virginia.edu
Subject: Re: field names
In-Reply-To: <20050423042401.GA2260@dcc.uchile.cl>
References: <4267F301.7050205@virginia.edu> <20050423042401.GA2260@dcc.uchile.cl>
* 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