From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Kevin Brown <kevin(at)sysexperts(dot)com>, <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PERFORM] Foreign key performance |
Date: | 2003-04-20 06:56:56 |
Message-ID: | 20030419235530.S23637-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
On Sat, 19 Apr 2003, Tom Lane wrote:
> Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> writes:
> > The hack was just the keeping around the list pointer from the last run
> > through (see attached - passed simple fk tests and regression, but there
> > might be problems I don't see).
>
> Shouldn't this patch update the comment in deferredTriggerInvokeEvents
> (c. line 1860 in cvs tip)?
Probably, since the second part of that is basically what this is. I'll
update and send updated patch tomorrow.
> > Looking at the code, I also wonder if we
> > would get some gain by not allocating the per_tuple_context at the
> > beginning but only when a non-deferred constraint is found since otherwise
> > we're creating and destroying the context and possibly never using it.
>
> I doubt it's worth worrying over. Creation/destruction of a never-used
> memory context is pretty cheap, I think.
Okay, sounds good enough for me. :)
From | Date | Subject | |
---|---|---|---|
Next Message | Cadili | 2003-04-20 09:06:51 | Re: How to write make rules for shared library and |
Previous Message | Bruce Momjian | 2003-04-20 02:47:38 | Re: rename/unlink handling for Win32 |
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Pflug | 2003-04-20 10:07:53 | Re: [SQL] Yet Another (Simple) Case of Index not used |
Previous Message | Kevin Brown | 2003-04-20 06:28:52 | Re: [SQL] Yet Another (Simple) Case of Index not used |