getting composite types info from libpq

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема getting composite types info from libpq
Дата
Msg-id AANLkTimX0AV2TXodxqOZtaSRjbe7AW8JUda7FYt7CGWO@mail.gmail.com
обсуждение исходный текст
Ответы Re: getting composite types info from libpq  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
Hello,

when a query returns a composite type, the libpq PQftype() function
reports the oid of the "record" type. In psycopg:
   >>> cur.execute("select (1,2)")   >>> cur.description   (('row', 2249, None, -1, None, None, None),)
   test=# select typname from pg_type where oid = 2249;    typname   ---------    record

Is there a way to recursively retrieve the types for the record components?

Thanks,

-- Daniele


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

Предыдущее
От: Dmitriy Igrishin
Дата:
Сообщение: Re: hstores in pl/python
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Segfault related to pg_authid when running initdb from git master