Re: How would you handle updating an item and related stuff all at once?

From: Guido Neitzer <lists(at)event-s(dot)net>
To: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: How would you handle updating an item and related stuff all at once?
Date: 2007-02-22 23:37:09
Message-ID: 75D6623F-8E4F-48D0-8141-DB6B5ECB673D@event-s.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 22.02.2007, at 15:56, Jim Nasby wrote:

> and "surrogate key fields should be named 'id'" (I *much* prefer
> the form "object_id", ie: user_id, used *everywhere*, including the
> user table (in that example)).
> Fortunately, with rails extensibility it shouldn't be hard to
> change those default behaviors (in fact there's probably a patch
> somewhere for the first case...)

It's really not hard to use the integrated mechanism for that:

class MyTable < ActiveRecord::Base
set_primary_key "mytable_id"
end

There are nevertheless usage glitches as far as I know. But it's no
real problem.

cug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joris Dobbelsteen 2007-02-22 23:41:25 Re: complex referential integrity constraints
Previous Message Jim Nasby 2007-02-22 23:32:45 Re: Out of memory on vacuum analyze