Re: [GENERAL] query not scaling - Mailing list pgsql-general

From Rob Sargent
Subject Re: [GENERAL] query not scaling
Date
Msg-id 857d59d2-bf2a-a595-7fcc-9b35fa3fb86a@gmail.com
Whole thread Raw
In response to Re: [GENERAL] query not scaling  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general



On 10/26/2017 09:01 AM, Tom Lane wrote:
Laurenz Albe <laurenz.albe@cybertec.at> writes:
Also, to have PostgreSQL inline the function, which would be good
for performance, it should be declared IMMUTABLE.
Actually, if you hope to have a SQL function be inlined, it's better
not to decorate it at all --- not with IMMUTABLE, and not with STRICT
either.  Both of those restrict the parser's ability to inline unless
it can prove the contained expression is equally immutable/strict.
With the default attributes of volatile/not strict, there's nothing
to prove.

(In any case, it's usually easy enough to tell from EXPLAIN output
whether inlining has happened.)
		regards, tom lane
As to the explain analyze,
could not receive data from server: Connection timed out
Time: 7877340.565 ms
for the second time.  I had presumed at first that this had occurred during a network burp.  I'll try running it directly on the pg host.

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] query not scaling
Next
From: "Zhu, Joshua"
Date:
Subject: [GENERAL] BDR question on dboid conflicts