Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id GAA00445 for postgres-redist; Wed, 29 Jun 1994 06:38:13 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199406291338.GAA00445@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from ks.mpi-dortmund.mpg.de (ks.mpi-dortmund.mpg.de [141.5.68.16]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id GAA00435 for <postgres@postgres.berkeley.edu>; Wed, 29 Jun 1994 06:38:08 -0700
Received: from dl.mpi-dortmund.mpg.de by ks.mpi-dortmund.mpg.de (4.1/SMI-4.1MHS-mpi-1.4.93)
	id AA05587; Wed, 29 Jun 94 15:37:33 +0200
Received: by dl.mpi-dortmund.mpg.de (4.1/SMI-4.1-mpi-30.3.93)
	id AA13231; Wed, 29 Jun 94 15:37:31 +0200
Date: Wed, 29 Jun 94 15:37:31 +0200
From: joerg.plewe@mpi-dortmund.mpg.de (J.Plewe)
Message-Id: <9406291337.AA13231@dl.mpi-dortmund.mpg.de>
To: postgres@postgres.Berkeley.EDU
Subject: Access via OID
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Wed, 29 Jun 94 06:38:13 -0700
Resent-XMts: smtp

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.
==============================================================================
