public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jeff Davis <[email protected]>
To: Pavel Stehule <[email protected]>
Cc: [email protected]
Subject: Re: [17] Special search_path names "!pg_temp" and "!pg_catalog"
Date: Mon, 21 Aug 2023 09:08:43 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAFj8pRCT20Zg-H3+QYuDvNNGMHyAMtHkvqzUgJgJxx7FwPhz6w@mail.gmail.com>
References: <[email protected]>
<CAFj8pRCT20Zg-H3+QYuDvNNGMHyAMtHkvqzUgJgJxx7FwPhz6w@mail.gmail.com>
On Sat, 2023-08-19 at 07:18 +0200, Pavel Stehule wrote:
> cannot be better special syntax
>
> CREATE OR REPLACE FUNCTION xxx()
> RETURNS yyy AS $$ ... $$$
> SET SEARCH_PATH DISABLE
>
> with possible next modification
>
> SET SEARCH_PATH CATALOG .. only for pg_catalog
> SET SEARCH_PATH MINIMAL .. pg_catalog, pg_temp
I agree that we should consider new syntax, and there's a related
discussion here:
https://www.postgresql.org/message-id/flat/[email protected]...
Regardless, even with syntax changes, we need something to print when
someone does a "SHOW search_path", i.e. some representation that
indicates pg_temp is excluded. That way it can also be saved and
restored.
> I question if we should block search path settings when this setting
> is used. Although I set search_path, the search_path can be
> overwritten in function of inside some nesting calls
If so, that should be a separate feature. For the purposes of this
thread, we just need a way to represent a search path that excludes
pg_temp and/or pg_catalog.
Regards,
Jeff Davis
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: [17] Special search_path names "!pg_temp" and "!pg_catalog"
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox