Re: field names

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Jodi Kanter <jkanter(at)virginia(dot)edu>
Cc: Postgres Admin List <pgsql-admin(at)postgresql(dot)org>
Subject: Re: field names
Date: 2005-04-23 04:24:01
Message-ID: 20050423042401.GA2260@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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[(at)]dcc(dot)uchile(dot)cl>)
"Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Fuhr 2005-04-23 04:30:32 Re: field names
Previous Message Ryan J. Cavicchioni 2005-04-23 01:25:52 Re: UNSUSCRIBE