Re: Seq scan on zero-parameters function - Mailing list pgsql-performance

From Tom Lane
Subject Re: Seq scan on zero-parameters function
Date
Msg-id 29560.1076079328@sss.pgh.pa.us
Whole thread Raw
In response to Re: Seq scan on zero-parameters function  (Richard Huxton <dev@archonet.com>)
List pgsql-performance
Richard Huxton <dev@archonet.com> writes:
> It's not entirely clear to me why this form is different from the other form
> though.

The code that checks for expressions containing unstable functions
doesn't look inside sub-selects.  Arguably this is a bug, but people
were relying on that behavior way back before we had these nice
STABLE/IMMUTABLE tags for functions.  I'm hesitant to change it for
fear of breaking people's apps.

            regards, tom lane

pgsql-performance by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: 7.3 vs 7.4 performance
Next
From: Tom Lane
Date:
Subject: Re: Increase performance of a UNION query that thakes 655.07 msec to be runned ?