Re: proposal: schema variables - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: proposal: schema variables
Date
Msg-id d1fea4cc5d74100b69fb4f5ceaadc2a6979a8c87.camel@cybertec.at
Whole thread Raw
In response to Re: proposal: schema variables  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: schema variables
Re: proposal: schema variables
List pgsql-hackers
On Thu, 2024-08-01 at 08:12 +0200, Pavel Stehule wrote:
> fresh rebase + fix format in doc

Thanks!

I'm curious, but too lazy to build the patch now, so I'm asking:
what did you do about this error?

> CREATE VARIABLE var AS date;
> LET var = current_date;
> PREPARE stmt(date) AS SELECT $1;
> EXECUTE stmt(var);
> ERROR:  paramid of PARAM_VARIABLE param is out of range

Or does a later patch take care of that?

Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: can we mark upper/lower/textlike functions leakproof?
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: schema variables