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.
E5394e4d020f5007cfbda9c2522aff63?d=identicon&s=25 Philipp Ott (Guest)
on 2006-02-22 15: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
5c19f2d52879a1e10670c7334ba4c7e3?d=identicon&s=25 Lugovoi Nikolai (Guest)
on 2006-02-22 15: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.