Re: Re: Storing old and new tuple values after an UPDATE, INSERT or DELETE

From: David Fetter <david(at)fetter(dot)org>
To: rmd22 <rohit(dot)dhamane(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Storing old and new tuple values after an UPDATE, INSERT or DELETE
Date: 2010-11-17 16:48:46
Message-ID: 20101117164846.GF22765@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-11-17 16:55:53 Re: Survey on backing up unlogged tables: help us with PostgreSQL development!
Previous Message Tomas Vondra 2010-11-17 16:44:32 Re: where is pg_stat_activity (and others) in the documentation?