From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vincenzo Romano <vincenzo.romano@notorand.it>
Cc: PostgreSQL General <pgsql-general@postgresql.org>
Subject: Re: [v10] CREATE TEMP FUNCTION/CREATE FUNCTION PG_TEMP.X
Date: Thu, 21 Dec 2017 11:56:14 -0500
Message-ID: <2830.1513875374@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHjZ2x4C5MkEikJy0XiqSw-SizSi11mmG_bk=9AqkNy9-Ja+ZA@mail.gmail.com>
References: <CAHjZ2x72-3sSX1Nj-05WguMpp4itUacNHB+96wss5EU31UnaiA@mail.gmail.com>
<2537.1513875130@sss.pgh.pa.us>
<CAHjZ2x4C5MkEikJy0XiqSw-SizSi11mmG_bk=9AqkNy9-Ja+ZA@mail.gmail.com>
Vincenzo Romano <vincenzo.romano@notorand.it> writes:
> 2017-12-21 17:52 GMT+01:00 Tom Lane <tgl@sss.pgh.pa.us>:
>> You have to schema-qualify the temp function name when calling it, too.
> So search_path is not used with functions?
pg_temp is explicitly ignored when searching for functions/operators.
Otherwise, installing a trojan horse is just too easy.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, vincenzo.romano@notorand.it
Subject: Re: [v10] CREATE TEMP FUNCTION/CREATE FUNCTION PG_TEMP.X
In-Reply-To: <2830.1513875374@sss.pgh.pa.us>
References: <CAHjZ2x72-3sSX1Nj-05WguMpp4itUacNHB+96wss5EU31UnaiA@mail.gmail.com> <2537.1513875130@sss.pgh.pa.us> <CAHjZ2x4C5MkEikJy0XiqSw-SizSi11mmG_bk=9AqkNy9-Ja+ZA@mail.gmail.com> <2830.1513875374@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox