Re: How to retrieve values of 'array' field using C library (libpq)

Поиск
Список
Период
Сортировка
От Joshua Tolley
Тема Re: How to retrieve values of 'array' field using C library (libpq)
Дата
Msg-id 4d533955.2af98e0a.15d5.371b@mx.google.com
обсуждение исходный текст
Ответ на Re: How to retrieve values of 'array' field using C library (libpq)  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список pgsql-general
On Wed, Feb 09, 2011 at 02:53:37PM +0300, Dmitriy Igrishin wrote:
> > My array is the array of integer values. So maybe there is some native
> > method to retrieve them (as in the 'themoney' example)?
> >
> Not in libpq. Probably, in libpqtypes.

I ended up writing one for pgsnmpd, which you're welcome to use. I can't
guarantee that writing my own was the best way to do it, or that it's free of
bugs. See pg_array.c and pg_array.h at
http://git.postgresql.org/gitweb?p=pgsnmpd.git;a=summary

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Relative ordering in array aggregation
Следующее
От: "David Johnston"
Дата:
Сообщение: Re: Storing Media Types