Re: Re: Storing old and new tuple values after an UPDATE, INSERT or DELETE - Mailing list pgsql-general

From David Fetter
Subject Re: Re: Storing old and new tuple values after an UPDATE, INSERT or DELETE
Date
Msg-id 20101117164846.GF22765@fetter.org
Whole thread Raw
In response to Re: Storing old and new tuple values after an UPDATE, INSERT or DELETE  (rmd22 <rohit.dhamane@gmail.com>)
Responses Re: Storing old and new tuple values after an UPDATE, INSERT or DELETE
List pgsql-general
On Wed, Nov 17, 2010 at 07:37:09AM -0800, rmd22 wrote:
> Yes I have tried it with triggers but I have to do it without using
> triggers.  Since in my workplace someone has already done that and
> for some reason (may be because triggers are expensive i
> suppose...not sure though), hence they want me to do it by modifying
> the source code.

Don't go there.  Instead, do this:

1.  Get a stated reason, other than "I said so," for not using
triggers.  My top bet is that they'll claim a performance issue.

2.  Decide on criteria for evaluating the claim, whatever it is.  Make
sure that the criteria are not insane.  Insane criteria look like, "We
can't take so much as a 0.001% performance hit anywhere in the system,
no matter what it gets us in return."

3.  Test the claim.

At the end of this, you'll either have tablelog on its way to
production, or a solid evidence that you need to find another gig.

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.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

pgsql-general by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: where is pg_stat_activity (and others) in the documentation?
Next
From: Tom Lane
Date:
Subject: Re: Survey on backing up unlogged tables: help us with PostgreSQL development!