Re: Calculated view fields (8.1 != 8.2) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Calculated view fields (8.1 != 8.2)
Date
Msg-id 29268.1173453867@sss.pgh.pa.us
Whole thread Raw
In response to Re: Calculated view fields (8.1 != 8.2)  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> Most people figured it was a improvment. It's configured per function
> now, which wasn't the case before. I dont't think there was ever any
> discussion about having a global switch.

Volatile functions that are not at the top level of a query are *always*
going to be a risk factor, in that you don't know quite where the
planner is going to evaluate them.  While I'm not by any means wedded to
the 8.2 no-flattening patch, it seems to me to be reasonable because it
reduces that uncertainty a bit.  The fact that Gaetano's code depended
on the uncertainty being resolved in a different direction is
unfortunate, but I think his code is really to blame, because postponing
the function eval like that couldn't be guaranteed anyway across all
queries.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: CLUSTER and MVCC
Next
From: "Florian G. Pflug"
Date:
Subject: Re: Calculated view fields (8.1 != 8.2)