On 2015-09-02 16:23:13 -0700, Peter Geoghegan wrote: > On Wed, Sep 2, 2015 at 4:12 PM, Andres Freund <and...@anarazel.de> wrote: > >> Well, still needs to work for tuplestore, which does not have a SortTuple. > > > > Isn't it even more trivial there? It's just an array of void*'s? So > > prefetch(state->memtuples + 3 + readptr->current)? > > All I meant is that there couldn't be one centralized definition for > both. I don't mind if you want to bake it into a macro for > tupelstore.c and tuplesort.c.
I'm not following? Just write pg_read_prefetch(state->memtuples + 3 + readptr->current) and the corresponding version for tuplesort in the callsites? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers