Re: Prevent extension creation in temporary schemas - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Prevent extension creation in temporary schemas
Date
Msg-id 20190219043534.GR15532@paquier.xyz
Whole thread Raw
In response to RE: Prevent extension creation in temporary schemas  ("Kuroda, Hayato" <kuroda.hayato@jp.fujitsu.com>)
Responses Re: Prevent extension creation in temporary schemas  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Feb 18, 2019 at 05:39:09AM +0000, Kuroda, Hayato wrote:
> I seem this patch is enough, but could you explain the reason
> you drop initial proposal more detail?
> I'm not sure why extensions contained by temporary schemas are
> acceptable.

Because there are cases where they actually work.  We have some of
these in core.

>> Anything depending on a temporary object will be dropped per
>> dependency links once the session is over.
>
> Extensions locate at pg_temp_* schemas are temporary objects IMO.
> How do you think? Would you implement this functionality in future?

Per the game of dependencies, extensions located in a temporary schema
would get automatically dropped at session end.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [Bug Fix] ECPG: could not use set xxx to default statement
Next
From: Michael Paquier
Date:
Subject: Re: Prevent extension creation in temporary schemas