Re: Query plan with missing timespans - Mailing list pgsql-performance

From Jason Petersen
Subject Re: Query plan with missing timespans
Date
Msg-id 4FB6E62B-3876-4D5C-9737-52F23D6693B6@citusdata.com
Whole thread Raw
In response to Re: Query plan with missing timespans  (Andomar <andomar@aule.net>)
Responses Re: Query plan with missing timespans
List pgsql-performance
On Apr 22, 2015, at 1:59 PM, Andomar <andomar@aule.net> wrote:

Is there a way to tell postgres that a function will always return the same result for the same parameter, within the same transaction?

Yup… read over the Function Volatility Categories page and decide which you need. What you’re describing is STABLE (or slightly stricter than STABLE, since STABLE makes that guarantee only for a single statement within a transaction).

--
Jason Petersen
Software Engineer | Citus Data
303.736.9255

Attachment

pgsql-performance by date:

Previous
From: Andomar
Date:
Subject: Re: Query plan with missing timespans
Next
From: Christian Gough
Date:
Subject: Postgresql Host Swapping Hard With Abundant Free Memory