type recv/send functions - Mailing list pgsql-hackers

From Greg Stark
Subject type recv/send functions
Date
Msg-id 87lksklhjl.fsf@stark.xeocode.com
Whole thread Raw
Responses Re: type recv/send functions
List pgsql-hackers
Is it just me or are the send/recv strangely asymmetric?

It seems like the recv function is designed to avoid copying so the type can
pick the data straight out of the data stream without passing through
intermediate representations.

But the send function forces the type to copy the data into a temporary bytea,
which is presumably then copied into the actual data stream. 

Wouldn't the natural thing to do be to provide the StringInfo buffer with a
cursor for the type's send function to stuff the bytea into?

-- 
greg



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Compile libpq with vc8
Next
From: Lukas Smith
Date:
Subject: Re: Proposal for debugging of server-side stored procedures