Re: minimal update

From: David Fetter <david(at)fetter(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>, Michael Glaesemann <grzm(at)seespotcode(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: minimal update
Date: 2008-10-21 13:36:30
Message-ID: 20081021133630.GE1906@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 21, 2008 at 03:34:04PM +0200, Magnus Hagander wrote:
> On 20 okt 2008, at 16.51, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>> Magnus Hagander wrote:
>>> Andrew Dunstan wrote:
>>>> Tom Lane wrote:
>>>>> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>>>>>> OK. Where would be a good place to put the code? Maybe a new
>>>>>> file src/backend/utils/adt/trigger_utils.c ?
>>>>>>
>>>>> I thought the plan was to make it a contrib module.
>>>>>
>>>> Well, previous discussion did mention catalog entries, which
>>>> would suggest otherwise, but I can do it as a contrib module if
>>>> that's the consensus.
>>>
>>> What would be the actual reason to put it in contrib and not core?
>>> Are there any "dangers" by having it there? Or is it "just a hack"
>>> and not a "real solution"?
>>
>> No, it's not just a hack. It's very close to what we'd probably do
>> if we built the facility right into the language, although it does
>> involve the overhead of calling the trigger. However, it performs
>> reasonably well - not surprising since the guts of it is just a
>> memcmp() call.
>>
> In that case, why not put the trigger in core so people can use it
> easily?

+1 :)

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

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2008-10-21 13:39:09 Re: minimal update
Previous Message Andrew Sullivan 2008-10-21 13:35:22 Re: SSL cleanups/hostname verification