Clarification on materialized view restriction needed - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject Clarification on materialized view restriction needed
Date
Msg-id CAFjFpRcz3qKQFQo3RynfPinXdOp_42Tz+xCqBQdAoe061bMRSw@mail.gmail.com
Whole thread Raw
Responses Re: Clarification on materialized view restriction needed  (Noah Misch <noah@leadboat.com>)
List pgsql-hackers
Hi All,
I want to create a materialized view as the output of a plpgsql function returning a set of rows. But that function creates temporary tables and thus can not be used for creating materialized view as per the documentation at http://www.postgresql.org/docs/9.3/static/sql-creatematerializedview.html.
"This query will run within a security-restricted operation; in particular, calls to functions that themselves create temporary tables will fail."

I tried to understand what is "security-restricted operation", and didn't find any definition of this term or any listing as to "these are security-restricted operations ...". I am wondering what are other restrictions on the queries whose results can be used to create materialized views.


--
Best Wishes,
Ashutosh Bapat
EntepriseDB Corporation
The Postgres Database Company

pgsql-hackers by date:

Previous
From: Vik Fearing
Date:
Subject: Re: Patch: Allow formatting in log_line_prefix
Next
From: Greg Smith
Date:
Subject: Re: Design proposal: fsync absorb linear slider