Re: How to update rows from a cursor in PostgreSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ruben <ruben12(at)superguai(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to update rows from a cursor in PostgreSQL
Date: 2003-02-23 16:39:58
Message-ID: 5814.1046018398@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ruben <ruben12(at)superguai(dot)com> writes:
> Shouldn't it be better then to use "oid" instead of ctid?

Only if you (a) have an OID column and (b) have a unique index created
on the OID column. ctid is nice because it doesn't incur any indexing
overhead ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-02-23 16:52:37 Re: Strange error (Socket command option unknown)
Previous Message Carlos Moreno 2003-02-23 15:48:30 Re: Strange error (Socket command option unknown)