Re: row description, protocol 3

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: row description, protocol 3
Дата
Msg-id 3981A0F6-5530-41F8-A232-F95B962DB5C4@pgedit.com
обсуждение исходный текст
Ответ на row description, protocol 3  ("Josh Close" <narshe@gmail.com>)
Ответы Re: row description, protocol 3  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: row description, protocol 3  ("Josh Close" <narshe@gmail.com>)
Список pgsql-interfaces
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



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Josh Close"
Дата:
Сообщение: row description, protocol 3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: row description, protocol 3