pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Theo Kramer <theo@flame.co.za>
To: pgsql-performance@postgresql.org
Subject: Re: oid...any optimizations
Date: Thu, 06 Mar 2008 09:21:36 +0200
Message-ID: <1204788096.2332.18.camel@localhost6.localdomain6> (raw)
In-Reply-To: <f966c2ee0803052302m2042fcb9ha17c041927987f69@mail.gmail.com>
References: <f966c2ee0803052302m2042fcb9ha17c041927987f69@mail.gmail.com>

On Thu, 2008-03-06 at 12:32 +0530, sathiya psql wrote:
> i had a table with 50 lakh record...
> 
> it has a column called oid ( obviously all the tables will have
> this ), but while doing any operation it is getting slow because of
> the number of records...
> 
> if i remove the oid column will i get any benefit, what are all the
> other default columns created without our knowledge..

Probably not

Also - do not remove oid if your sql operations require it. 

A 'create index x_oid_idx on table x (oid)' might help. 

Also see EXPLAIN in the manual.

-- 
Regards
Theo




view thread (5+ messages)  latest in thread

Message-ID: <1204788096.2332.18.camel@localhost6.localdomain6>
Permalink:  ../1204788096.2332.18.camel@localhost6.localdomain6/
Also on:    postgresql.org/message-id/1204788096.2332.18.camel@localhost6.localdomain6

 · 

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: pgsql-performance@postgresql.org
  Cc: theo@flame.co.za
  Subject: Re: oid...any optimizations
  In-Reply-To: <1204788096.2332.18.camel@localhost6.localdomain6>

* 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