pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
oid...any optimizations
5+ messages / 3 participants
[nested] [flat]

* oid...any optimizations
@ 2008-03-06 07:02  sathiya psql <sathiya.psql@gmail.com>
  0 siblings, 2 replies; 5+ messages in thread

From: sathiya psql @ 2008-03-06 07:02 UTC (permalink / raw)
  To: pgsql-performance

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

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: oid...any optimizations
@ 2008-03-06 07:06  Joshua D. Drake <jd@commandprompt.com>
  parent: sathiya psql <sathiya.psql@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Joshua D. Drake @ 2008-03-06 07:06 UTC (permalink / raw)
  To: sathiya psql <sathiya.psql@gmail.com>; +Cc: pgsql-performance

On Thu, 6 Mar 2008 12:32:01 +0530
"sathiya psql" <sathiya.psql@gmail.com> 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...

Actually it isn't obvious as oids have been deprecated for years.

> 
> if i remove the oid column will i get any benefit, what are all the
> other default columns created without our knowledge..

What version of ancient PostgreSQL are you running exactly?

Joshua D. Drake


-- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL SPI Liaison | SPI Director |  PostgreSQL political pundit

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: oid...any optimizations
@ 2008-03-06 07:13  sathiya psql <sathiya.psql@gmail.com>
  parent: Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 1 reply; 5+ messages in thread

From: sathiya psql @ 2008-03-06 07:13 UTC (permalink / raw)
  To: Joshua D. Drake <jd@commandprompt.com>; +Cc: pgsql-performance

>
> Actually it isn't obvious as oids have been deprecated for years.


no in my version it is now also available....

>
>
> What version of ancient PostgreSQL are you running exactly?


postgresql 7.4

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: oid...any optimizations
@ 2008-03-06 07:21  Theo Kramer <theo@flame.co.za>
  parent: sathiya psql <sathiya.psql@gmail.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Theo Kramer @ 2008-03-06 07:21 UTC (permalink / raw)
  To: 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




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: oid...any optimizations
@ 2008-03-06 16:28  Joshua D. Drake <jd@commandprompt.com>
  parent: sathiya psql <sathiya.psql@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Joshua D. Drake @ 2008-03-06 16:28 UTC (permalink / raw)
  To: sathiya psql <sathiya.psql@gmail.com>; +Cc: pgsql-performance

On Thu, 6 Mar 2008 12:43:57 +0530
"sathiya psql" <sathiya.psql@gmail.com> wrote:

> >
> > Actually it isn't obvious as oids have been deprecated for years.
> 
> 
> no in my version it is now also available....

I didn't say they were gone. I said they are deprecated. You should not
be using them.

> 
> >
> >
> > What version of ancient PostgreSQL are you running exactly?
> 
> 
> postgresql 7.4

That is god awful ancient. Upgrade to something remotely new, like
8.2.6.

Joshua D. Drake

-- 
The PostgreSQL Company since 1997: http://www.commandprompt.com/ 
PostgreSQL Community Conference: http://www.postgresqlconference.org/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL SPI Liaison | SPI Director |  PostgreSQL political pundit

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2008-03-06 16:28 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-03-06 07:02 oid...any optimizations sathiya psql <sathiya.psql@gmail.com>
2008-03-06 07:06 ` Joshua D. Drake <jd@commandprompt.com>
2008-03-06 07:13   ` sathiya psql <sathiya.psql@gmail.com>
2008-03-06 16:28     ` Joshua D. Drake <jd@commandprompt.com>
2008-03-06 07:21 ` Theo Kramer <theo@flame.co.za>

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