Re: Most efficient way for libPQ .. PGresult serialization - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Most efficient way for libPQ .. PGresult serialization
Date
Msg-id CAMsr+YGirzWk5ca0Q0HgAgHGkM0ZOUaxGZfHy_1cQLMcZvtgDQ@mail.gmail.com
Whole thread Raw
In response to Re: Most efficient way for libPQ .. PGresult serialization  (Joshua Bay <joshuabay93@gmail.com>)
Responses Re: Most efficient way for libPQ .. PGresult serialization  (Joshua Bay <joshuabay93@gmail.com>)
List pgsql-hackers

On 19 August 2016 at 03:08, Joshua Bay <joshuabay93@gmail.com> wrote:
Thanks,
But I don't think my question was clear enough. 

I already managed the connection pooling, and what I need is to serialize the result.

If PGresult was a contiguous block, I could have just create buffer and call memcpy for serialization, but structure of result seems much more complicated. 

So, I was asking if there is an easy way to achieve serialization

It's wire format is a serialization. That's kind of the point.

I don't understand what you're trying to do here, so it's hard to give a better answer. 

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Fix comment in ATExecValidateConstraint
Next
From: Craig Ringer
Date:
Subject: Re: [PATCH] bigint txids vs 'xid' type, new txid_recent(bigint) => xid