pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedfield names
3+ messages / 3 participants
[nested] [flat]
* field names
@ 2005-04-21 18:37 Jodi Kanter <jkanter@virginia.edu>
2005-04-23 04:24 ` Re: field names Alvaro Herrera <alvherre@dcc.uchile.cl>
2005-04-23 04:30 ` Re: field names Michael Fuhr <mike@fuhr.org>
0 siblings, 2 replies; 3+ messages in thread
From: Jodi Kanter @ 2005-04-21 18:37 UTC (permalink / raw)
To: pgsql-admin
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?
Thanks
Jodi Kanter
--
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu100>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: field names
2005-04-21 18:37 field names Jodi Kanter <jkanter@virginia.edu>
@ 2005-04-23 04:24 ` Alvaro Herrera <alvherre@dcc.uchile.cl>
1 sibling, 0 replies; 3+ messages in thread
From: Alvaro Herrera @ 2005-04-23 04:24 UTC (permalink / raw)
To: Jodi Kanter <jkanter@virginia.edu>; +Cc: 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[@]dcc.uchile.cl>)
"Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: field names
2005-04-21 18:37 field names Jodi Kanter <jkanter@virginia.edu>
@ 2005-04-23 04:30 ` Michael Fuhr <mike@fuhr.org>
1 sibling, 0 replies; 3+ messages in thread
From: Michael Fuhr @ 2005-04-23 04:30 UTC (permalink / raw)
To: Jodi Kanter <jkanter@virginia.edu>; +Cc: 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?
See the "System Catalogs" and "The Information Schema" chapters in
the documentation (the latter in 7.4 and later).
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-04-23 04:30 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-21 18:37 field names Jodi Kanter <jkanter@virginia.edu>
2005-04-23 04:24 ` Alvaro Herrera <alvherre@dcc.uchile.cl>
2005-04-23 04:30 ` Michael Fuhr <mike@fuhr.org>
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