Remove redundant code in pl_exec.c

From: Japin Li <japinli(at)hotmail(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Remove redundant code in pl_exec.c
Date: 2022-09-09 15:18:04
Message-ID: MEYP282MB16697283245D0D2D6F015012B6439@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hi, hackers

I found there are some redundant code in pl_exec.c,
plpgsql_param_eval_generic_ro is same as plpgsql_param_eval_generic
except it invokes MakeExpandedObjectReadOnly.

IMO, we can invoke plpgsql_param_eval_generic in plpgsql_param_eval_generic_ro
to avoid the redundant.

Is there something I missed? Any thoughts?

--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.

Attachment Content-Type Size
code-cleanup-for-plpgsql_param_eval_generic_ro.patch text/x-patch 1.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2022-09-09 15:18:46 Re: why can't a table be part of the same publication as its schema
Previous Message Nazir Bilal Yavuz 2022-09-09 14:54:07 Re: configure --with-uuid=bsd fails on NetBSD