Re: Bug report - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug report
Date
Msg-id 5806.1461975659@sss.pgh.pa.us
Whole thread Raw
In response to Bug report  (Кирковский Александр <alex.kirkouski@gmail.com>)
List pgsql-bugs
Кирковский Александр <alex.kirkouski@gmail.com> writes:
> I have a query (it is attached to the letter - bug.script), that do some
> complex calculations using window functions. When the data is stored in
> global tables it works just fine (returns 2711 rows), but when data is in
> temporary tables the query returns 9076 (some rows are duplicated).

I've pushed a fix for this.  Many thanks for the reproducible test case!

> I've checked, this bug is not reproduced in PostgreSQL 9.5.2, but I wonder
> if it is coincidence, because the bug is pretty fragile (changing almost any
> join leads to normal behavior), and in 9.5.2 the plan is totally different.

Yeah, it was only accidentally masked in 9.5.
        regards, tom lane



pgsql-bugs by date:

Previous
From: Andres Freund
Date:
Subject: Re: streaming replication master can fail to shut down
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #14103: stored function encryption