Re: Prevent extension creation in temporary schemas

Поиск
Список
Период
Сортировка
От Sergei Kornilov
Тема Re: Prevent extension creation in temporary schemas
Дата
Msg-id 2096721551341724@myt1-06117f29c1ea.qloud-c.yandex.net
обсуждение исходный текст
Ответ на RE: Prevent extension creation in temporary schemas  ("Kuroda, Hayato" <kuroda.hayato@jp.fujitsu.com>)
Ответы Re: Prevent extension creation in temporary schemas  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi

> I found that this strange error appears after making
> temporary tables.
>
> test=> CREATE TEMPORARY TABLE temp (id int);
> CREATE TABLE
> test=> CREATE EXTENSION file_fdw WITH SCHEMA pg_temp_3;
> ERROR: function file_fdw_handler() does not exist
>
> I would try to understand this problem for community and
> my experience.

This behavior seems as not related to extensions infrastructure:

postgres=#  CREATE TEMPORARY TABLE temp (id int);
CREATE TABLE
postgres=# set search_path to 'pg_temp_3';
SET
postgres=# create function foo() returns int as 'select 1' language sql;
CREATE FUNCTION
postgres=# select pg_temp_3.foo();
 foo 
-----
   1
(1 row)

postgres=# select foo();
ERROR:  function foo() does not exist
LINE 1: select foo();
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
postgres=# show search_path ;
 search_path 
-------------
 pg_temp_3
(1 row)

regards, Sergei


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: New vacuum option to do only freezing
Следующее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: RE: reloption to prevent VACUUM from truncating empty pages at theend of relation