pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ron Johnson <ronljohnsonjr@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Why is materialized view creation a "security-restricted operation"?
Date: Fri, 2 Oct 2026 07:54:31 -0700
Message-ID: <f6d2fca1-1ee4-4d97-8219-100dd91d8496@aklaver.com> (raw)
In-Reply-To: <CANzqJaBnOOer7V+AFk1uY86+uGfFj5EUCJLA0LvYyv9KCTksxg@mail.gmail.com>
References: <77826d7580a9488ca28eb4bcfe94aa37@stmuk.bayern.de>
	<61488cb9-5b84-449a-9886-e0d3b9671aa6@aklaver.com>
	<CANzqJaCa34mEGBsTKZZQz7ZwDR3jd+Q0=s2_7ayw2hHFwTMXjw@mail.gmail.com>
	<CAKFQuwZwX-L-c+=DS=_+kox_+p9AobWRWL7Fot48uAOt2t_X1Q@mail.gmail.com>
	<CANzqJaBnOOer7V+AFk1uY86+uGfFj5EUCJLA0LvYyv9KCTksxg@mail.gmail.com>

On 10/2/26 3:19 AM, Ron Johnson wrote:
> On Thu, Oct 1, 2026 at 8:35 PM David G. Johnston 
> <david.g.johnston@gmail.com <mailto:david.g.johnston@gmail.com>> wrote:
> 
>     On Thu, Oct 1, 2026 at 4:56 PM Ron Johnson <ronljohnsonjr@gmail.com
>     <mailto:ronljohnsonjr@gmail.com>> wrote:
> 
>         A GLOBAL TEMP table (where the DBA runs the CREATE GLOBAL TEMP
>         TABLE once (so that CREATE TEMP TABLE some_table  everywhere
>         that my_func() is called) would also solve OP's problem.
> 
> 
>     Per the create table docs:
> 
>     "Optionally, GLOBAL or LOCAL can be written before TEMPORARY or
>     TEMP. This presently makes no difference in PostgreSQL and is
>     deprecated; see Compatibility below."
> 
> And I'm praying for "since future versions of PostgreSQLmight adopt a 
> more standard-compliant interpretation of their meaning" in the 
> Compatibility section you referenced.

As an extension there is:

https://github.com/darold/pgtt

> 
> -- 
> Death to <Redacted>, and butter sauce.
> Don't boil me, I'm still alive.
> <Redacted> lobster!


-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (20+ messages)  latest in thread

Message-ID: <f6d2fca1-1ee4-4d97-8219-100dd91d8496@aklaver.com>
Permalink:  ../f6d2fca1-1ee4-4d97-8219-100dd91d8496@aklaver.com/
Also on:    postgresql.org/message-id/f6d2fca1-1ee4-4d97-8219-100dd91d8496@aklaver.com

 · 

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: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ronljohnsonjr@gmail.com
  Subject: Re: Why is materialized view creation a "security-restricted operation"?
  In-Reply-To: <f6d2fca1-1ee4-4d97-8219-100dd91d8496@aklaver.com>

* 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