Re: Performance problem in textanycat/anytextcat - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Performance problem in textanycat/anytextcat
Date
Msg-id 2350.1274025455@sss.pgh.pa.us
Whole thread Raw
In response to Re: Performance problem in textanycat/anytextcat  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Performance problem in textanycat/anytextcat
List pgsql-hackers
I wrote:
> Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
>> Marking textanycat as not immutable would forbid using it in
>> expression indexes, too.

> True.  On the other hand, the current state of affairs allows one to
> create an index on expressions that aren't really immutable, with
> ensuing hilarity.

It strikes me that we could avoid any possible functional regression
here by having CREATE INDEX perform expression preprocessing (in
particular, function inlining) before it tests to see if the index
expression contains any non-immutable functions.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Keepalive for max_standby_delay
Next
From: Stephen Frost
Date:
Subject: Re: [PATCH] Add SIGCHLD catch to psql