pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Thiemo Kellner <thiemo@gelassene-pferde.biz>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Why is materialized view creation a "security-restricted operation"?
Date: Tue, 6 Oct 2026 14:50:03 -0700
Message-ID: <f9e87c52-45b3-49df-9f5d-6cf1fb4c5bbd@aklaver.com> (raw)
In-Reply-To: <3edf72d9-94d2-4de9-89d9-fbd456525265@gelassene-pferde.biz>
References: <77826d7580a9488ca28eb4bcfe94aa37@stmuk.bayern.de>
	<9da33cfb-661f-4088-9fad-04f6eb8fd21b@gelassene-pferde.biz>
	<e26681b8-695d-45d4-9359-af12ce33dcfe@aklaver.com>
	<3edf72d9-94d2-4de9-89d9-fbd456525265@gelassene-pferde.biz>



On 10/5/26 11:02 PM, Thiemo Kellner wrote:
> I am referring to "Temporary tables are automatically dropped at the end 
> of a session, or optionally at the end of the current 
> transaction" (https://www.postgresql.org/docs/18/sql-createtable.html). 
> I.e that if you have to debug a production system, you cannot just look 
> into the temptables to to pin-point where data is not the way expected. 
> You have to recreate every intermediary result.

Does that issue not also exist with persistent tables, where the data 
you are looking in the debugging stage maybe not be what was present at 
the error stage?


> 
> 04.10.2026 22:24:47 Adrian Klaver <adrian.klaver@aklaver.com>:
> 
>> On 10/4/26 12:27 PM, Thiemo Kellner wrote:
>>> Hi
>>> Giving my two dimes. I apologise if some else has given it already. 
>>> And it is quite an operations point of view and mostly based on 
>>> Oracle. To the best of my knowledge, it applies to Postgres even more.
>>> The data of DB temp tables are not visible outside of the session 
>>> that has put it in. In the case of trying to find the problem of code 
>>> of functions storing intermediary results, they are just not visible 
>>> for the investigator such that one has to do all the steps manually 
>>> to detect the point where things go wrong. In my opinion a real pita.
>>
>> I am not quite following the above.
>>
>> Do you mean:
>>
>> 1) Not having access to the function code ?
>>
>> 2) Having access to function code, but not the source of data?
>>
>>
>>
>>
>>> Cheers
>>> Thiemo
>>
>>
>> -- 
>> Adrian Klaver
>> adrian.klaver@aklaver.com







view thread (17+ messages)  latest in thread

Message-ID: <f9e87c52-45b3-49df-9f5d-6cf1fb4c5bbd@aklaver.com>
Permalink:  ../f9e87c52-45b3-49df-9f5d-6cf1fb4c5bbd@aklaver.com/
Also on:    postgresql.org/message-id/f9e87c52-45b3-49df-9f5d-6cf1fb4c5bbd@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, thiemo@gelassene-pferde.biz, pgsql-general@lists.postgresql.org
  Subject: Re: Why is materialized view creation a "security-restricted operation"?
  In-Reply-To: <f9e87c52-45b3-49df-9f5d-6cf1fb4c5bbd@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