Re: SPI question (or not): trying to read from Large Objects from within a function

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: SPI question (or not): trying to read from Large Objects from within a function
Дата
Msg-id
16623.1073457982@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
SPI question (or not): trying to read from Large Objects from within a function David Helgason <david@uti.is>
Re: SPI question (or not): trying to read from Large Objects from within a function Tom Lane <tgl@sss.pgh.pa.us>
Re: SPI question (or not): trying to read from Large Objects from within a function David Helgason <david@uti.is>
Re: SPI question (or not): trying to read from Large Objects from within a function David Helgason <david@uti.is>
Re: SPI question (or not): trying to read from Large Objects from within a function Tom Lane <tgl@sss.pgh.pa.us>
David Helgason  writes:
> These internal functions (loread/lowrite) have quite different 
> signatures from their C equivalents (as opposed to lo_lseek). Found out 
> from the sources that I was using it very incorrectly.

I had just realized from reading your last message that you were trying
to write server-side functions, and reading the client-side
documentation to do so :-(.  The server-side stuff is really not the
same API at all, though it tends to use the same function names.
In general, you have to be prepared to read the source code when writing
server-side stuff.

			regards, tom lane
В списке pgsql-general по дате отправления
От: David Helgason
Дата:
От: Sean Shanny
Дата:
FAQ