Re: [JDBC] Reading and writing off-heap data - Mailing list pgsql-jdbc

From Tom Dunstan
Subject Re: [JDBC] Reading and writing off-heap data
Date
Msg-id CAPPfruyp3Zt99+vWpmqawuFOCCQx_3Zi3cKMqeZyXOWqxF1DZw@mail.gmail.com
Whole thread Raw
In response to Re: [JDBC] Reading and writing off-heap data  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
List pgsql-jdbc
Hi Vladimir!

On 25 September 2017 at 17:50, Vladimir Sitnikov <sitnikov.vladimir@gmail.com> wrote:
>
>
> That is of no question. The question is "do you intend to call user-provided code right from org.postgresql.core.v3.QueryExecutorImpl#processResults, case 'D': // Data Transfer (ongoing Execute response)" ?

We'd have to call it inside PGStream#receiveTupleV3 I think, as that's where the byte arrays for each field are being allocated. Or potentially it could be moved into the tuple class itself.

As with PR 953 https://github.com/pgjdbc/pgjdbc/pull/953 we'd call the user-provided code on a guarded InputStream so that we know they can't mess the stream up.

Cheers

Tom

pgsql-jdbc by date:

Previous
From: Vladimir Sitnikov
Date:
Subject: Re: [JDBC] Reading and writing off-heap data
Next
From: Tom Dunstan
Date:
Subject: Re: [JDBC] Reading and writing off-heap data