Re: BUG #15577: Query returns different results when executed multiple times

David Rowley <david.rowley@2ndquadrant.com>

From: David Rowley <david.rowley@2ndquadrant.com>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>, Bartosz Polnik <bartoszpolnik@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2019-01-10T00:23:38Z
Lists: pgsql-bugs
On Thu, 10 Jan 2019 at 10:04, Andrew Gierth <andrew@tao11.riddles.org.uk> wrote:
> Looks like this isn't a new bug, either; I can reproduce it on 10.x.

Yeah, introduced in 9.6;

I wrote:
> 45be99f8cd Support parallel joins, and make related improvements. -- BAD
> a7de3dc5c3 Support multi-stage aggregation. -- GOOD

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


Commits

  1. Avoid sharing PARAM_EXEC slots between different levels of NestLoop.