From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | jian he <jian(dot)universality(at)gmail(dot)com> |
Cc: | Dmitry Dolgov <9erthalion6(at)gmail(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Erik Rijkers <er(at)xs4all(dot)nl>, Michael Paquier <michael(at)paquier(dot)xyz>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, DUVAL REMI <REMI(dot)DUVAL(at)cheops(dot)fr>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Re: proposal: schema variables |
Date: | 2025-01-06 10:01:17 |
Message-ID: | CAFj8pRBFpVZ7ZpB9G5MkePVFGHFRuq6b_iRufTg2HibX5hnzRA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
ne 5. 1. 2025 v 17:11 odesílatel jian he <jian(dot)universality(at)gmail(dot)com>
napsal:
> + /*
> + * The arguments of EXECUTE are evaluated by a direct expression
> + * executor call. This mode doesn't support session variables yet.
> + * It will be enabled later.
> + */
> + if (pstate->p_hasSessionVariables)
> + elog(ERROR, "session variable cannot be used as an argument");
>
> it should be:
> /*
> * The arguments of CALL statement are evaluated by a direct expression
> * executor call. This path is unsupported yet, so block it.
> */
> if (pstate->p_hasSessionVariables)
> ereport(ERROR,
> errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
> errmsg("session variable cannot be used as an argument"));
>
> done
>
> similarly, EvaluateParams we can change it to
> /*
> * The arguments of EXECUTE are evaluated by a direct expression
> * executor call. This mode doesn't support session variables yet.
> * It will be enabled later.
> */
> if (pstate->p_hasSessionVariables)
> ereport(ERROR,
> errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
> errmsg("session variable cannot be used as an argument"));
>
done
>
> in src/backend/executor/execExpr.c
> we don't need
> +#include "catalog/pg_variable.h"
> ?
>
moved to patch 16
From | Date | Subject | |
---|---|---|---|
Next Message | Ilia Evdokimov | 2025-01-06 10:50:31 | Re: Sample rate added to pg_stat_statements |
Previous Message | Julien Rouhaud | 2025-01-06 09:59:02 | Re: RFC: Allow EXPLAIN to Output Page Fault Information |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2025-01-06 12:21:09 | Re: Re: proposal: schema variables |
Previous Message | Pavel Stehule | 2025-01-06 08:39:39 | Re: Re: proposal: schema variables |