pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Les <nagylzs@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: possible bug
Date: Fri, 21 Oct 2022 15:05:31 -0400
Message-ID: <3242464.1666379131@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKXe9UBmUy-GGb8h91CXe+KKfcTmW0k=F0_5k5AAz0Psdg85eg@mail.gmail.com>
References: <CAKXe9UBmUy-GGb8h91CXe+KKfcTmW0k=F0_5k5AAz0Psdg85eg@mail.gmail.com>

Les <nagylzs@gmail.com> writes:
> We had a support request today, and we have narrowed down the problem to a
> query that behaves very strangely. The actual query was much more
> complicated, but I came up with this minimal example.

Which PG version is this exactly?  Given the Memoize node shown
in your plan, I suppose 14.something, but is it up to date?
There were Memoize-related bug fixes in 14.2 and 14.4, and the
one in 14.2 looks particularly likely to be relevant.

If you are on the current minor release, does "set enable_memoize = off"
change the behavior?

			regards, tom lane





view thread (17+ messages)  latest in thread

Message-ID: <3242464.1666379131@sss.pgh.pa.us>
Permalink:  ../3242464.1666379131@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3242464.1666379131@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, nagylzs@gmail.com
  Subject: Re: possible bug
  In-Reply-To: <3242464.1666379131@sss.pgh.pa.us>
  References: <CAKXe9UBmUy-GGb8h91CXe+KKfcTmW0k=F0_5k5AAz0Psdg85eg@mail.gmail.com> <3242464.1666379131@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox