Skip site navigation (1) Skip section navigation (2)

is a good practice to create an index on the oid?

From: Edoardo Ceccarelli <eddy(at)axa(dot)it>
To: pgsql-jdbc(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org,pgsql-admin(at)postgresql(dot)org
Subject: is a good practice to create an index on the oid?
Date: 2004-04-26 16:38:00
Message-ID: 408D3AE8.5020006@axa.it (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-jdbcpgsql-performance
I am using the oid of the table as the main key and I've found that is 
not indexed (maybe because I have declared another primary key in the table)

it is a good practice to create an index like this on the oid of a table?
CREATE INDEX idoid annuncio400 USING btree (oid);


does it work as a normal index?

Thank you
Edoardo

Responses

pgsql-performance by date

Next:From: brad-pgperfDate: 2004-04-26 17:11:03
Subject: planner/optimizer question
Previous:From: Sailesh KrishnamurthyDate: 2004-04-26 15:08:16
Subject: Re: Number of pages in a random sample

pgsql-admin by date

Next:From: Joel GarryDate: 2004-04-26 22:45:08
Subject: Re: How configure Oracle 9i not case sensitive...
Previous:From: Ross FerrisDate: 2004-04-24 15:32:38
Subject: Re: How configure Oracle 9i not case sensitive...

pgsql-jdbc by date

Next:From: Dave CramerDate: 2004-04-26 16:38:59
Subject: Re: How do handle concurrent DML operations
Previous:From: David WallDate: 2004-04-26 15:54:29
Subject: Re: BLOBS

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group