agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
To: postgres@postgres.Berkeley.EDU
Subject: Access via OID
Date: Wed, 29 Jun 94 15:37:31 +0200
Message-ID: <9406291337.AA13231@dl.mpi-dortmund.mpg.de> (raw)

I have a question where I think to know the answer, but I 
want to make sure:

Is the access with an explicit oid, e.g.

  retrieve (circles.all) where circles.oid = 123456::oid

faster than a selection with any other attribute??

I think no, but e.g. for Oracle I know that having a rowid
lets you access the tuple VERY fast, because file,block,... 
are encoded in the rowid, so Oracle does not have to search.

Is there a similar mechanism for Postgres?


- Joerg


*********************************************************************
Dipl. Phys. Joerg Plewe               joerg.plewe@mpi-dortmund.mpg.de
MPI fuer molekulare Physiologie
Rheinlanddamm 201
44139 Dortmund
Germany                               +49 (0)231 1206 384
*********************************************************************
  

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================



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 using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: joerg.plewe@mpi-dortmund.mpg.de
  Subject: Re: Access via OID
  In-Reply-To: <9406291337.AA13231@dl.mpi-dortmund.mpg.de>

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

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