Обсуждение: pg_dump, send/recv

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

pg_dump, send/recv

От
Ivan Voras
Дата:
Hello,

Actually I have sort of two questions rolled into one: when creating
custom data types, there's the option to implement *_send() and *_recv()
functions in addition to *_in() and *_out(); does pg_dump use them for
binary dumps, and, if not, what uses them? Are they only an optional
optimization for storing binary data in the database?

Re: pg_dump, send/recv

От
Craig Ringer
Дата:
On 09/20/2012 01:01 AM, Ivan Voras wrote:
> Hello,
>
> Actually I have sort of two questions rolled into one: when creating
> custom data types, there's the option to implement *_send() and *_recv()
> functions in addition to *_in() and *_out(); does pg_dump use them for
> binary dumps, and, if not, what uses them? Are they only an optional
> optimization for storing binary data in the database?

I don't know what *else* they're used for, but there's a binary wire
protocol (albeit a rarely used one) that I'm pretty sure uses them.

--
Craig Ringer