Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xED3A-00000000zGT-28hZ for pgsql-general@arkaria.postgresql.org; Tue, 06 Oct 2026 21:50:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xED38-00000002Bzj-1dJM for pgsql-general@arkaria.postgresql.org; Tue, 06 Oct 2026 21:50:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xED38-00000002Bzb-0Hts for pgsql-general@lists.postgresql.org; Tue, 06 Oct 2026 21:50:14 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xED35-00000000iRP-30aJ for pgsql-general@lists.postgresql.org; Tue, 06 Oct 2026 21:50:12 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 3ABD17A0048 for ; Tue, 6 Oct 2026 17:50:10 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 06 Oct 2026 17:50:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1791323409; x=1791409809; bh=3RVqbAgRPdyXPJtaV8HF5mB68u1MUG2RBb5kc0cf5So=; b= tPU6Z/l48cITZ8cwjV5f5awSJyA0THJvQ/f01tAgnt+koHGfBJO4exl17rVx8pVA dJVryVkGB374+JdVpFmoMg/qHaB2M6LFO6DYrFaLPXi5CYUOWDMhy7bMU9PW+Urz OH4WCuQK92+Q+X4EHXrfnYThhWYYOYYjlG6aViKOOCQLEc35zwP5rXj4r8wVfnDo cuLzE5dTBft3UfwZWwufvsQhKyUa4aliPsQqJ9aLvcdU0v3E+7ELRrSLzfX1E5Na V9pJxdgRjf3rNWTxN6FJFJ9VJJsKqV80oYVaydw1bwFfsfxId+vDDq3Z8IajzrWm 80O1aIeLvtoHAzuC6xkhlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1791323409; x=1791409809; bh=3 RVqbAgRPdyXPJtaV8HF5mB68u1MUG2RBb5kc0cf5So=; b=lL91eutKWqelDyHdh 5mQXqjaVdI/4o2Eo0gcD0qvCZ7EdpfdkvCtJiPHLOX3V3DuQ2MzVBaWZgd3R+8yz zWkJMz+SHWmi4ipQATUNy3M28EwDc8CmH0lcRWgzYniichaAZNHrTz6Ha6blBvFO o+XSEfTG37ZaHLwW2b74jLgkiVi54NqHvHxl8F+NcBE/9aQNKmk+yRXVy88Z5Vp2 Li/8Z4Jn0EeJ19nE4EtOie4g9BlHF2NjY01Qeqg9KUCyhOgB3TGlXHmxoVDZr7RR B5APoMaiDk9H5NwCQCHroplFqGIzEl5IPnNMZDvtH4V9geeIOgLty47qvPiJQOfc 0YOVQ== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox; action=sign d=aklaver.com a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1791323409; d=aklaver.com; mf=PGFkcmlhbi5rbGF2ZXJAYWtsYXZlci5jb20+; rt=PHBnc3FsLWdlbmVyYWxAbGlzdHMucG9zdGdyZXNxbC5vcmc+; s=fm1:rsa-sha256:RpWrMQ9zEqOabZiYOU713KJJIQdWjnruwfZ19Aly19N8DXZ Tmpt3lc9i0yiu8FGWA1hDWS+YPVPE/z4n3UfWA0AbR3aS4tXW5yhD9LHinJEsWB8 YqB7kkimDeYPrS37EjzA9zEkU9e9VhTu9H0RGQNhQAGmrSiJnu0eWifOq4RqPUg/ Oxs3WH1vA+hE8d/WVapQLYl1rLgPF2zmFzk902KHOPGhfxeyaYJ4jh0Z+ksoNZyd juOQ1vEBxHYXYWL59XHKQ7iqLkK1B4wD53+2PcKxqJTIdUnmiKNVL9tj0M5KiE+4 ZDsOQDT4X4EpabcH6XncPPLHwq+QHVUtfoCYXsQ==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox; action=mi-m=1; hc=13; hn=content-language,content-transfer-encoding,content-type,date, feedback-id,from,in-reply-to,message-id,mime-version,references, subject,to,user-agent; Message-Instance: m=1; h=sha256:R7B0T94U3jxeu3fuGJfpi6C//93HCWDfJ5iWizzrxdo=:GCUMk5M1u64COiOQHp3yTPoZNSXUPsybNOQuY/fVj2E=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGP8NkuOdt3o/Mgo+59T1LvWh2ck6tZgrJrXB/mDSQSCWrauke+0j/ydd88OBziWZ MWi/UoanHjxyJYvPa7VuwCmRcuMtxanMRhri0bPJnurQ4kk3iOHS8/EeFjHoSZIYV8IFTX 48wZjrk4SYmpwXmmYjNLkwalLUAl5UxnJB9eI5TJuMnDCYcpF+GvKp8RFC3VWeOb1ZGSNz DF85E03S8sz6qIZwG7IipLfrdCBQt1oc97HuLyM7fDGDaYk6Ol+lPfND5pf6KiobItV75c lwm3Xd2yAVo3inhLjDglRNlyl7Bxj2gfJ6ntsjL183jwM/WUFdZL4yZj8+w0L0vFO414N8 AD+XJ0SHrlIy3hzHGypR8m5dUYhUxS4xt6tjdBU1MZNTqARpaQJEunp5TumuT8g1j2Bh4U MvXElt5yxmJAtMIKpHiZQ+QMziirrrNN75bkesOLBLrbqDObWVvmOI5O7xCqinvwhxOYXY +XwnoB16yPfs/0hY0c8g+qsqOsOGjHNfZeM6Bscr3Hk8D5Td9OcgzXPwd4xbfiWRLKVJf+ RGxJy9cKxXH54/uCgYSoZ/nfTq/cB5l5ekT8O6coZx906okefzIhxSxDLeoEnbYB/xolfb TdNoD0/UHKp6plk6xb13j/n1FF6B/+0rdKNE7OAjUJRX8NuoHgQWj3NuOwAA X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Oct 2026 17:50:05 -0400 (EDT) Message-ID: Date: Tue, 6 Oct 2026 14:50:03 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Why is materialized view creation a "security-restricted operation"? To: Thiemo Kellner , pgsql-general References: <77826d7580a9488ca28eb4bcfe94aa37@stmuk.bayern.de> <9da33cfb-661f-4088-9fad-04f6eb8fd21b@gelassene-pferde.biz> <3edf72d9-94d2-4de9-89d9-fbd456525265@gelassene-pferde.biz> Content-Language: en-US From: Adrian Klaver In-Reply-To: <3edf72d9-94d2-4de9-89d9-fbd456525265@gelassene-pferde.biz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 : > >> 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