From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Matteo Beccati <php(at)beccati(dot)com>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Teodor Sigaev <teodor(at)sigaev(dot)ru>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Enhanced containment selectivity function |
Date: | 2006-04-26 22:36:26 |
Message-ID: | 21789.1146090986@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Tom Lane wrote:
>> What really needs to happen next is to think about which bits of
>> selfuncs.c should be exposed --- what's generally useful, and do we
>> think that it has an API clean/stable enough to expose?
> Well, the ltree routine just needs struct VariableStatData and
> macro ReleaseVariableStats(), and we need to change one function from
> static to global. That and some #includes, and it works. Do we want to
> be more formal about it?
If we're going to expose VariableStatData then I think the minimum
reasonable set of supporting functions would be examine_variable(),
get_restriction_variable(), get_join_variable(). Matteo's patch only
uses the second one but that's because he's only implementing one type
of estimator (no joinsel function for instance).
I'd be inclined to create a new header file, too, instead of cluttering
builtins.h with this stuff. utils/selfuncs.h probably.
I'm willing to work on this, but it doesn't look like you reverted the
prior patch yet?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-04-26 22:39:09 | Re: [HACKERS] Enhanced containment selectivity function |
Previous Message | Jim C. Nasby | 2006-04-26 22:34:11 | Re: Catalog Access (was: [GENERAL] Concurrency problem |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-04-26 22:39:09 | Re: [HACKERS] Enhanced containment selectivity function |
Previous Message | Bruce Momjian | 2006-04-26 22:32:01 | Re: [HACKERS] Enhanced containment selectivity function |