Most efficient way for libPQ .. PGresult serialization

From: Joshua Bay <joshuabay93(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Most efficient way for libPQ .. PGresult serialization
Date: 2016-08-18 02:05:37
Message-ID: CABb-U3Y0GyB4w5GUh5dDhmNb8ZkmVnsO4hWVw5h0DY=9LHOKTg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I was trying to implement a middleware that lies between client and
postgres.

So, this middleware is supposed to run query with libpq, do its job on
them, and then serialize the result of query, and send it to the client !
(client deserializes to PGresult)

I could simply iterate over rows and columns but than that would be slow.
I also found that query results consist of 3 parts (PGresult, tuples, data
blocks).

Could I please get some pointers ? :)

Thanks,
Joshua

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua Bay 2016-08-18 02:06:36 Re: Way to access LSN (for each transaction) by directly talking to postgres?
Previous Message Thomas Munro 2016-08-18 01:55:07 Re: WIP: Barriers