Re: Accessing composite type columns from C

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Accessing composite type columns from C
Дата
Msg-id 9614.1200586193@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Accessing composite type columns from C  (Reg Me Please <regmeplease@gmail.com>)
Список pgsql-general
Reg Me Please <regmeplease@gmail.com> writes:
> Is there a way with the libpq to access "subcolumns" in a composite type
> column?

libpq knows nothing in particular about composite columns.  You'd need
to parse out the data for yourself, per the syntax rules at
http://www.postgresql.org/docs/8.2/static/rowtypes.html#AEN5986

Depending on what you're doing, it might be better to expand the
column at the server side, ie, "SELECT (ccol).* FROM ..."

            regards, tom lane

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

Предыдущее
От: Tom Hart
Дата:
Сообщение: Re: advocacy: drupal and PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Can't make backup (again)