Forum: Ruby on Rails Rails with postgres-oids?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Philipp Ott (Guest)
on 2006-02-22 16:09
(Received via mailing list)
Hello!

Postgres supports oids which is a unique number for any row in a given
database. There is the 'id' already inside oids - wouldnt it be nice and
handy to turn on some global environemt.rb or database.yaml magic-switch
and rails uses the oids internally and transparently on the postgresql
adapter, sparing people the need to create auto-increment-serial ids
with postgres databases?

Regards
Philipp
Lugovoi N. (Guest)
on 2006-02-22 16:12
(Received via mailing list)
row OIDs work best only for internals - pg_catalog tables, for example.
don't use them as primary keys for your tables - it's ugly and is
discouraged.
(and recent versions of PostgreSQL have WITHOUT OIDS as *default*
option for CREATE TABLE)
This topic is locked and can not be replied to.