Re: queryId constant squashing does not support prepared statements - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: queryId constant squashing does not support prepared statements
Date
Msg-id aBPxS58PWgpNrWUB@paquier.xyz
Whole thread Raw
In response to Re: queryId constant squashing does not support prepared statements  (Sami Imseih <samimseih@gmail.com>)
Responses Re: queryId constant squashing does not support prepared statements
List pgsql-hackers
On Thu, May 01, 2025 at 03:57:16PM -0500, Sami Imseih wrote:
> I think what we should really allow the broader scope of expressions that
> are allowed via prepared statements, and this will make this implementation
> consistent between prepared vs non-prepared statements. I don't see why
> not. In fact, when we are examining the ArrayExpr, I think the only
> thing we should
> not squash is if we find a Sublink ( i.e. SELECT statement inside the array ).

Likely so.  I don't have anything else than Sublink in mind that would
be worth a special case..

> I am really leaning towards that we should revert this feature as the
> limitation we have now with parameters is a rather large one and I think
> we need to go back and address this issue.

I am wondering if this would not be the best move to do on HEAD.
Let's see where the discussion drives us.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Remove Instruction Synchronization Barrier in spin_delay() for ARM64 architecture
Next
From: Salvatore Dipietro
Date:
Subject: Re: Remove Instruction Synchronization Barrier in spin_delay() for ARM64 architecture