Re: Function search_path - Mailing list pgsql-admin

From Tom Lane
Subject Re: Function search_path
Date
Msg-id 2328.1521236730@sss.pgh.pa.us
Whole thread Raw
In response to RE: Function search_path  ("Heinemann, Manfred (IMS)" <HeinemannM@imsweb.com>)
Responses RE: Function search_path  ("Heinemann, Manfred (IMS)" <HeinemannM@imsweb.com>)
List pgsql-admin
"Heinemann, Manfred (IMS)" <HeinemannM@imsweb.com> writes:
> I have played around with the postgres memory settings and setting search_path on a function causes a lot more memory
tobe used than if no search_path was set. 

That's a pretty broad claim with a pretty small amount of evidence
offered.

I can certainly believe that attaching a SET clause (whether for
search_path or any other GUC variable) would have an efficiency impact;
one non-obvious example is that it prevents inlining if the function is
a SQL function.  But I don't immediately see a reason for major memory
consumption from that.  I suspect what you're seeing is specific to a
particular use-case.  If you were to provide a concrete example, we
could look into what's happening.

            regards, tom lane


pgsql-admin by date:

Previous
From: "Heinemann, Manfred (IMS)"
Date:
Subject: RE: Function search_path
Next
From: karan sharma
Date:
Subject: CVE-2018-1058