X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D2FB5534F2 for ; Sat, 23 Apr 2005 01:30:59 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 02098-10 for ; Sat, 23 Apr 2005 04:30:46 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id C976C53727 for ; Sat, 23 Apr 2005 01:30:36 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j3N4UXfI035900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Apr 2005 22:30:35 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j3N4UX6s096258; Fri, 22 Apr 2005 22:30:33 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j3N4UWC0096257; Fri, 22 Apr 2005 22:30:32 -0600 (MDT) (envelope-from mfuhr) Date: Fri, 22 Apr 2005 22:30:32 -0600 From: Michael Fuhr To: Jodi Kanter Cc: Postgres Admin List Subject: Re: field names Message-ID: <20050423043032.GA96231@winnie.fuhr.org> References: <4267F301.7050205@virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4267F301.7050205@virginia.edu> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/334 X-Sequence-Number: 17347 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/