Skip site navigation (1) Skip section navigation (2)

Re: row description, protocol 3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John DeSoi <desoi(at)pgedit(dot)com>
Cc: "Josh Close" <narshe(at)gmail(dot)com>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: row description, protocol 3
Date: 2006-02-28 06:42:26
Message-ID: 11010.1141108946@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
John DeSoi <desoi(at)pgedit(dot)com> writes:
> On Feb 28, 2006, at 12:53 AM, Josh Close wrote:
>> 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;

Also, the format_type function might be useful:

regression=# select format_type(1042, 44);
  format_type  
---------------
 character(40)
(1 row)


			regards, tom lane

In response to

pgsql-interfaces by date

Next:From: Robert GruszkaDate: 2006-02-28 12:35:46
Subject: multiple threads using one connection
Previous:From: John DeSoiDate: 2006-02-28 06:10:47
Subject: Re: row description, protocol 3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group