Re: lifetime of TubleTableSlot* returned by ExecProcNode

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bramandia Ramadhana" <bramandia(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: lifetime of TubleTableSlot* returned by ExecProcNode
Date: 2008-12-13 02:36:27
Message-ID: 18536.1229135787@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Bramandia Ramadhana" <bramandia(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message KaiGai Kohei 2008-12-13 02:52:10 Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)
Previous Message Bramandia Ramadhana 2008-12-13 02:30:34 Re: lifetime of TubleTableSlot* returned by ExecProcNode