Re: Cursors and Transactions, why?

From: Joe Conway <mail(at)joeconway(dot)com>
To: Eric Ridge <ebr(at)tcdi(dot)com>
Cc: Pgsql-General <pgsql-general(at)postgresql(dot)org>, Jan Wieck <JanWieck(at)Yahoo(dot)com>
Subject: Re: Cursors and Transactions, why?
Date: 2004-04-07 23:48:26
Message-ID: 4074934A.2010408@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Eric Ridge wrote:
> Is the tuplestore basically just an array of ItemPointer-s? In mean,
> it's not a copy of each entire row, is it?

Yup, it is copied:

src/backend/utils/sort/tuplestore.c:tuplestore_puttuple()
8<--------------------------------------------------------
/*
* Accept one tuple and append it to the tuplestore.
*
* Note that the input tuple is always copied; the caller need not save
* it.
8<--------------------------------------------------------

Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eric Ridge 2004-04-08 00:36:20 Re: Cursors and Transactions, why?
Previous Message Kevin Lohka 2004-04-07 23:32:55 Re: Are functions automatically transactioned?