On Tue, Aug 27, 2024 at 11:14 AM jian he <jian.universal...@gmail.com> wrote:
> also it's ok to use passed (ParseState *pstate) for
> {
>         estate = CreateExecutorState();
>         estate->es_param_list_info = params;
>         paramLI = EvaluateParams(pstate, entry, execstmt->params, estate);
> }
> ?
> I really don't know.
>
> some of the change is refactoring, maybe you can put it into a separate patch.

Thanks for the review. I think the parser state is mostly used for the
error callbacks and parser_errposition but I'm not 100% sure. Either
way, you're right and it probably shouldn't be in the patch. I've
modified the patch to restrict the changes to only add the necessary
query jumble and post parse hook calls.

Attachment: v4-0001-Set-query_id-for-queries-contained-in-utility-sta.patch
Description: Binary data

Reply via email to