Re: Odd Shortcut behaviour in PG14 - Mailing list pgsql-general

From Tom Lane
Subject Re: Odd Shortcut behaviour in PG14
Date
Msg-id 3307508.1700840085@sss.pgh.pa.us
Whole thread Raw
In response to RE: Odd Shortcut behaviour in PG14  (Zahir Lalani <ZahirLalani@oliver.agency>)
Responses RE: Odd Shortcut behaviour in PG14
List pgsql-general
Zahir Lalani <ZahirLalani@oliver.agency> writes:
> Looking at the application logs this function is being called once per
> display row - it is running successfully around 10 times with the same
> input params. When it fails, it is with the same params!

You *still* haven't defined what you mean by "fails".  We can't help
you effectively with such tiny dribs and drabs of information.
At the very least I'd like to see the whole query, because the
fragment you've shown us does not reveal what ekey is or why you
think the system should believe that it is or is not zero.
But it's also unclear why that should matter.

Having said that ... if the statement is being executed with a cached
plan (via a named statement, or PREPARE, or inside plpgsql) then
maybe the problem occurs if the plan switches from custom to generic?
If so, messing with the plan_cache_mode setting might provide a
workaround.

            regards, tom lane



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: replication primary writting infinite number of WAL files
Next
From: Les
Date:
Subject: Re: replication primary writting infinite number of WAL files