Re: [HACKERS] lifetime of TubleTableSlot* returned by ExecProcNode

2008-12-15 Thread Bramandia Ramadhana
After reading the source code for nodeHash.c and tuplesort.c, I decided to create new struct containing MinimumTuple and few members. I am still wondering in one thing: typedef struct HashJoinTupleData { struct HashJoinTupleData *next;/* link to next tuple in same bucket */ uint32

Re: [HACKERS] lifetime of TubleTableSlot* returned by ExecProcNode

2008-12-13 Thread Bramandia Ramadhana
I see. Thanks for the advice. I would research on how to use tuplestore object. Regards, Bramandia R. On Sat, Dec 13, 2008 at 10:36 AM, Tom Lane t...@sss.pgh.pa.us wrote: Bramandia Ramadhana braman...@gmail.com writes: Hmm how if an upper level node needs to store (for future use) the

Re: [HACKERS] lifetime of TubleTableSlot* returned by ExecProcNode

2008-12-12 Thread Tom Lane
Bramandia Ramadhana braman...@gmail.com writes: As per title, what is the lifetime of the virtual tuple TupleTableSlot* returned by ExecProcNode? Until you next call that same plan node. regards, tom lane -- Sent via pgsql-hackers mailing list

Re: [HACKERS] lifetime of TubleTableSlot* returned by ExecProcNode

2008-12-12 Thread Bramandia Ramadhana
I see. 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

Re: [HACKERS] lifetime of TubleTableSlot* returned by ExecProcNode

2008-12-12 Thread Tom Lane
Bramandia Ramadhana braman...@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

[HACKERS] lifetime of TubleTableSlot* returned by ExecProcNode

2008-12-11 Thread Bramandia Ramadhana
Hello, As per title, what is the lifetime of the virtual tuple TupleTableSlot* returned by ExecProcNode? Any help would be appreciated. Regards, Bramandia R.