From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Diego Augusto Molina <diegoaugustomolina(at)gmail(dot)com> |
Cc: | Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: [Solved] Generic logging system for pre-hstore using plperl triggers |
Date: | 2011-09-28 13:20:04 |
Message-ID: | 20110928132004.GD7090@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Sep 27, 2011 at 04:52:08PM -0300, Diego Augusto Molina wrote:
> 2011/9/27, Diego Augusto Molina <diegoaugustomolina(at)gmail(dot)com>:
> > Honestly, I don't remember why I used triggers instead of rules in the
> > "audit" and "audet" tables.
>
> I remember now, that's because in my case, operations over tuples are
> done very lightly (one or two in the same sentence at a time). So, for
> a case as such, rules end up beeing more expensive than triggers
> (right?).
There's an even better reason not to use rules: they're going away in
a not too distant version of PostgreSQL.
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Diego Augusto Molina | 2011-09-28 13:20:07 | Re: [Solved] Generic logging system for pre-hstore using plperl triggers |
Previous Message | David Fetter | 2011-09-28 13:16:50 | Re: live metadata changes v8.3.4 |