Unix Technical Forum

oid...any optimizations

This is a discussion on oid...any optimizations within the Pgsql Performance forums, part of the PostgreSQL category; --> i had a table with 50 lakh record... it has a column called oid ( obviously all the tables ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:45 AM
sathiya psql
 
Posts: n/a
Default oid...any optimizations

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 11:45 AM
Joshua D. Drake
 
Posts: n/a
Default Re: oid...any optimizations

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


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHz5gNATb/zqfZUUQRAi2iAJ44+nfmZR+VEkKiGyZdx3vlG3/mtgCeI0me
8jyRE8IwxgyT0eH6nl4dMGM=
=ebSG
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 11:45 AM
sathiya psql
 
Posts: n/a
Default Re: oid...any optimizations

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 11:45 AM
Theo Kramer
 
Posts: n/a
Default Re: oid...any optimizations

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


--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://mail.postgresql.org/mj/mj_www...ql-performance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 11:45 AM
Joshua D. Drake
 
Posts: n/a
Default Re: oid...any optimizations

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


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH0BvDATb/zqfZUUQRAtz5AJoDgr7vqKLoH19m+JV1BFO2pJScNwCdFywi
JdjKlIygwjo5qca4BZ2QesU=
=g0fg
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com