BUG #17818: CTE is not returning the right data. - Mailing list pgsql-bugs

From David G. Johnston
Subject BUG #17818: CTE is not returning the right data.
Date
Msg-id CAKFQuwYE3kgk67m-Jr=6t_XVARejxxur6UmEQ6e5W=WjTazegg@mail.gmail.com
Whole thread Raw
In response to BUG #17818: CTE is not returning the right data.  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Thursday, March 2, 2023, PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      17818
Logged by:          Shiau Hoay Ong
Email address:      cute_hoay88@hotmail.com
PostgreSQL version: 12.1
Operating system:   window
Description:       

Hi Postgresql Support Team, today i encounter a mystery case. The Stored
Procedure is already used for sometime, but today there are some issue in
this Stored Procedure which causing the data got deleted. The scenario is
like sample below :


I do try out with Create Temp Table also work fine with the sample without
need filtering (as filtering will only reduce data record set).
Can you please help to investigate and explain what is the possible root
cause for this?
Thanks!


Upgrade to a supported minor release and probably rebuild all indexes (though being windows I’m less sure about collation issues…)

David J.

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17821: Assertion failed in heap_update() due to heap pruning
Next
From: Tom Lane
Date:
Subject: Re: Clause accidentally pushed down ( Possible bug in Making Vars outer-join aware)