Most efficient way for libPQ .. PGresult serialization

Поиск
Список
Период
Сортировка
От Joshua Bay
Тема Most efficient way for libPQ .. PGresult serialization
Дата
Msg-id CABb-U3Y0GyB4w5GUh5dDhmNb8ZkmVnsO4hWVw5h0DY=9LHOKTg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Most efficient way for libPQ .. PGresult serialization  (Craig Ringer <craig@2ndquadrant.com>)
Список 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

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: WIP: Barriers
Следующее
От: Joshua Bay
Дата:
Сообщение: Re: Way to access LSN (for each transaction) by directly talking to postgres?