Обсуждение: Documentation of the Front End/Back End Protocol for Large Objects

Поиск
Список
Период
Сортировка

Documentation of the Front End/Back End Protocol for Large Objects

От
"Marco Bizzarri"
Дата:
Hi all.

I would like to study the protocol for large object operations
(lo_read, lo_write,...) between the front-end and back-end.

I've found this
http://www.postgresql.org/docs/8.1/static/protocol.html, but it looks
like it has no message specific for large object...

How is it implemented in client (libpq, I suppose)?

Regards
Marco

--
Marco Bizzarri
http://notenotturne.blogspot.com/

Re: Documentation of the Front End/Back End Protocol for Large Objects

От
Tom Lane
Дата:
"Marco Bizzarri" <marco.bizzarri@gmail.com> writes:
> I would like to study the protocol for large object operations
> (lo_read, lo_write,...) between the front-end and back-end.

> I've found this
> http://www.postgresql.org/docs/8.1/static/protocol.html, but it looks
> like it has no message specific for large object...

libpq does it through Function Call messages that invoke lo_open and so
on.  Look into src/interfaces/libpq/fe-lobj.c.

            regards, tom lane

Re: Documentation of the Front End/Back End Protocol for Large Objects

От
"Marco Bizzarri"
Дата:
Hi Tom.

Thanks for your suggestion, this was my choice, after I was unable to
find any reference.



On 6/23/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Marco Bizzarri" <marco.bizzarri@gmail.com> writes:
> > I would like to study the protocol for large object operations
> > (lo_read, lo_write,...) between the front-end and back-end.
>
> > I've found this
> > http://www.postgresql.org/docs/8.1/static/protocol.html, but it looks
> > like it has no message specific for large object...
>
> libpq does it through Function Call messages that invoke lo_open and so
> on.  Look into src/interfaces/libpq/fe-lobj.c.
>
>                         regards, tom lane
>


--
Marco Bizzarri
http://notenotturne.blogspot.com/