Re: lifetime of TubleTableSlot* returned by ExecProcNode - Mailing list pgsql-hackers

From Tom Lane
Subject Re: lifetime of TubleTableSlot* returned by ExecProcNode
Date
Msg-id 18536.1229135787@sss.pgh.pa.us
Whole thread Raw
In response to Re: lifetime of TubleTableSlot* returned by ExecProcNode  ("Bramandia Ramadhana" <bramandia@gmail.com>)
Responses Re: lifetime of TubleTableSlot* returned by ExecProcNode
Re: lifetime of TubleTableSlot* returned by ExecProcNode
List pgsql-hackers
"Bramandia Ramadhana" <bramandia@gmail.com> writes:
> Hmm how if an upper level node needs to store (for future use) the
> TupleTableSlot* returned by lower level node, e.g. I create a specialized
> Sort Node which needs to read all tuples from lower level nodes. In this
> case, would it be necessary and sufficient to make a copy the TupleTableSlot

It would be a pretty crummy way to approach it, because a Slot is not
intended to be a compact representation.  You probably want to use a
tuplestore or tuplesort object instead.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Bramandia Ramadhana"
Date:
Subject: Re: lifetime of TubleTableSlot* returned by ExecProcNode
Next
From: KaiGai Kohei
Date:
Subject: Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)