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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-interfaces by date

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