Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 46572633D70 for ; Wed, 4 Nov 2009 01:31:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 92471-01 for ; Wed, 4 Nov 2009 05:31:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 292D163331A for ; Wed, 4 Nov 2009 01:31:30 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id nA45VQAp008801; Wed, 4 Nov 2009 00:31:26 -0500 (EST) To: Brian Karlak cc: pgsql-performance@postgresql.org Subject: Re: maintaining a reference to a fetched row In-reply-to: <22AC581D-50D1-4863-9FDE-35EDDB171269@metaweb.com> References: <22AC581D-50D1-4863-9FDE-35EDDB171269@metaweb.com> Comments: In-reply-to Brian Karlak message dated "Tue, 03 Nov 2009 12:30:15 -0800" Date: Wed, 04 Nov 2009 00:31:26 -0500 Message-ID: <8800.1257312686@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 200911/40 X-Sequence-Number: 36208 Brian Karlak 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