Re: oid...any optimizations

From: Theo Kramer <theo(at)flame(dot)co(dot)za>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: oid...any optimizations
Date: 2008-03-06 07:21:36
Message-ID: 1204788096.2332.18.camel@localhost6.localdomain6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message sathiya psql 2008-03-06 08:16:13 index usage makes problem
Previous Message A. Kretschmer 2008-03-06 07:18:15 Re: count * performance issue