Re: selectivity function - Mailing list pgsql-hackers

From Tom Lane
Subject Re: selectivity function
Date
Msg-id 2427981.1653592221@sss.pgh.pa.us
Whole thread Raw
In response to selectivity function  (Greg Hennessy <greg.hennessy@gmail.com>)
Responses Re: selectivity function  (Greg Hennessy <greg.hennessy@gmail.com>)
List pgsql-hackers
Greg Hennessy <greg.hennessy@gmail.com> writes:
> I'm trying to include a sensitivity operator in a function. My issue is
> that when I have my function, I get a call to SupportRequestSimplify, but
> not SupportRequestSensitivity. It is not obvious what I am doing that is
> incorrect.

Attaching a support function to a SQL-language function seems pretty
weird to me.  I think probably what is happening is that the SQL
function is getting inlined and thus there is nothing left to apply
the selectivity hook to.  simplify_function() will try the
SupportRequestSimplify hook before it tries inlining, so the fact
that that one registers isn't at odds with this theory.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Greg Hennessy
Date:
Subject: selectivity function
Next
From: Tom Lane
Date:
Subject: Re: Patch: Don't set LoadedSSL unless secure_initialize succeeds