pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cary O'Brien <cobrien@Radix.Net>
Cc: mikeo@spectrumtelecorp.com
Cc: pgsql-general@hub.org
Subject: Re: Re: [SQL] oracle rownum equivalent?
Date: Thu, 08 Jun 2000 10:38:14 -0400
Message-ID: <15872.960475094@sss.pgh.pa.us> (raw)
In-Reply-To: <200006081245.IAA05207@saltmine.radix.net>
References: <200006081245.IAA05207@saltmine.radix.net>

"Cary O'Brien" <cobrien@Radix.Net> writes:
> What I meant to say, and failed, was that in Oracle, rowid
> "psuedo-column" are hex encoded strings containing the block, row, and
> file where the tuple is stored.  So lookup on unindexed rowid *should*
> be fast, although this is not spelled out in my ancient Oracle book.

Oh, in that case it's pretty much like our CTID column.  For example:

regression=# select ctid,* from int8_tbl where ctid = '(0,3)';
 ctid  |        q1        | q2
-------+------------------+-----
 (0,3) | 4567890123456789 | 123
(1 row)

There is some code in 7.0 that tries to implement this in a fast way,
but I don't know how well it works...

			regards, tom lane



view thread (10+ messages)

Message-ID: <15872.960475094@sss.pgh.pa.us>
Permalink:  ../15872.960475094@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15872.960475094@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, cobrien@Radix.Net, mikeo@spectrumtelecorp.com, pgsql-general@hub.org
  Subject: Re: [SQL] oracle rownum equivalent?
  In-Reply-To: <15872.960475094@sss.pgh.pa.us>
  References: <200006081245.IAA05207@saltmine.radix.net> <15872.960475094@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox