Re: maintaining a reference to a fetched row

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brian Karlak <zenkat(at)metaweb(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: maintaining a reference to a fetched row
Date: 2009-11-04 05:31:26
Message-ID: 8800.1257312686@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Brian Karlak <zenkat(at)metaweb(dot)com> writes:
> My question is this: is there some way that I can keep a cursor /
> pointer / reference / whatever to the row I fetched originally, so
> that I don't have to search for it again when I'm ready to write
> results?

If you don't expect any updates to the row meanwhile, ctid might serve.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Ivan Voras 2009-11-04 10:35:23 Re: Free memory usage Sol10, 8.2.9
Previous Message Greg Smith 2009-11-04 04:42:48 Re: High Frequency Inserts to Postgres Database vs Writing to a File