X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 916569DCC17 for ; Tue, 28 Feb 2006 02:10:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37060-03 for ; Tue, 28 Feb 2006 02:10:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from a2s5.a2hosting.com (host-209-124-50-10.a2webhosting.com [209.124.50.10]) by postgresql.org (Postfix) with ESMTP id 50C5A9DCC02 for ; Tue, 28 Feb 2006 02:10:47 -0400 (AST) Received: from adsl-153-102-223.tys.bellsouth.net ([70.153.102.223] helo=[192.168.1.10]) by a2s5.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1FDy4M-0006Gc-U9; Tue, 28 Feb 2006 01:10:47 -0500 In-Reply-To: <4a0cafe20602272153s7a3e0c2fme8516170675df1e0@mail.gmail.com> References: <4a0cafe20602272153s7a3e0c2fme8516170675df1e0@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3981A0F6-5530-41F8-A232-F95B962DB5C4@pgedit.com> Cc: pgsql-interfaces@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: row description, protocol 3 Date: Tue, 28 Feb 2006 01:10:47 -0500 To: "Josh Close" X-Mailer: Apple Mail (2.746.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s5.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.182 required=5 tests=[AWL=0.182] X-Spam-Score: 0.182 X-Spam-Level: X-Archive-Number: 200602/83 X-Sequence-Number: 6047 Johsh, On Feb 28, 2006, at 12:53 AM, Josh Close wrote: > I'm getting row description and row data back from Postgres, but I > can't figure out how to get the datatype of the row field. > > There is a type modifier and an oid of a the field's data type, but > I haven't found anywhere those match up with Postgres data types. > > Where can I get the data type from the row description? The oid maps to the pg_type table: select oid, typname from pg_type order by oid; John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL