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 1xCeeq-000000001rM-3euV for pgsql-general@arkaria.postgresql.org; Fri, 02 Oct 2026 14:54:45 +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 1xCeep-00000000CfQ-3gNf for pgsql-general@arkaria.postgresql.org; Fri, 02 Oct 2026 14:54:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xCeeo-00000000CfF-33bp for pgsql-general@lists.postgresql.org; Fri, 02 Oct 2026 14:54:43 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xCeei-000000002b5-3Bvu for pgsql-general@postgresql.org; Fri, 02 Oct 2026 14:54:41 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 715071D000C7 for ; Fri, 2 Oct 2026 10:54:33 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 02 Oct 2026 10:54:33 -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=fm3; t=1790952873; x=1791039273; bh=gwYSbh0Pnos3XB1Ps9Ryxq+ITppBsZANs/cC+7v7PvY=; b= JvyOXYlUX1mprQQfPGOcoXAQQkgKFGZtzLlxG47LF6JWBJ+RlaNbKWxqr7NwrK6z KqrtJDvCXnc7ebf4WbhpwfuVdFZY079AKe7/DDubj9VSPo+1hbsd5ivOTa7EOTzZ tZwZMC0ZgJCkAFVm2+UnngdDHv1MSZN+cf1nNKBulzX98GouFYqX7jqogyJ51tPg MmVlOSrUfktDSTr7HxrdNJKqzaQBF0JkcI1JOZeUtdF03sYItyFFk+Ft4l24THsi 35EP+lMsuNlGfVgLIfsordr26WEFZu9HwnCsSR5QuSyCHA085xFNHGByo/AqSc5a yO6SatEH17XzaVhZk+ffKg== 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=fm1; t=1790952873; x=1791039273; bh=g wYSbh0Pnos3XB1Ps9Ryxq+ITppBsZANs/cC+7v7PvY=; b=eWDFWraPBUjV/uEey rK022781qNKbEBVGS3pSIfFvGGOpAbjmZ1JaXn7zF0M9fuGdLIMmMDpXTKWNWATp jNmxJG9DsphFkvTB67O6trchXR0fab8kmW9NFuA5+V5pecBbJUTjCshi07Q4vd+O Kr0gf0wYfl4CqmdfubaCbXaPoY0cYw2syIUUj0b0gI1scKrPQyOeAAz6TmWN/WrA jtD9N17yz1Yp/zMt2Qnp6Jhlti87QCjp2V8UVDL53unQLJsYg/A4+QNAakGCo6oY E8KHjAcSalYz9UjUr8sGlIypBuSdhaeAmMdIO40qDtklXZgYKceM3Vsrq6bqNgui 5bR3w== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-09-30; sw=lmtpprox; action=sign d=aklaver.com a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1790952873; d=aklaver.com; mf=PGFkcmlhbi5rbGF2ZXJAYWtsYXZlci5jb20+; rt=PHBnc3FsLWdlbmVyYWxAcG9zdGdyZXNxbC5vcmc+; s=fm3:rsa-sha256:FEWboNynp29yKF9t6RNcVhyh9B5IUY+VLcnd/c0Nkq6Qfjd Bm6+JhT5kLYyQZc4WnN0cpiVijI+Sj5WaO9nilfh3HvSLf2RtXENb7TMxY4bgry2 WSxTKwNP1l3pEw89NO+QrqcWGR3J+CrjCPhNfV35mpPzDqXfsFXFdpX4Z0o3AOsM XG+TcyVF38WUV+N71aB1TYSlHGmxy1MoEZqB/UCWj9dOM3p1iZ9JN5uxmtW4SFtS EYmEpkIkQaq4SebsJ0EozQbjtQ8lWHFtxkMiNbfug+UD8TuOyO3jmtXEeArfagHW sSboAlEhH4pZQ2duPoB3lyGYcK5UkSNC4uyya+A==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-09-30; 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:5u17z7/xdWxEhGYpofwN6thEfE8nBfwA5/9Fd1J5orw=:AgldhT8HYKp/y6yaDMenyGJpItfZc8g/FzoX+gY9RuY=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGTjxd2qknwG+p8N7CO2dXOKU+ae3B1laERXUlHVtLiQ1NhiyfmoKJenwu0b+p3Yl LYBbTFURGlrVNfp58odCGtnzgXwj2SAcyQtUD7UZpFayJNGw8ezm3JVoR7HEJit7brTGNm SNChyhTGQbxRr9MNI4gb+bHxlpbOCvy0S81ZkpBGnNthAgSVEiO5KxYz9t7Kx15+v3lO42 h2hwcgutaM+93vub1aC5UvHLeUCAEMKdwIp40ThTa7jRd0/a3FEOpiv5rqqtdK0FlVw5/V /d8kq9B8rbeUyL2v+r1/BzNup4kXikWEv9Sz4TI9tUB0yBDDuE9+mtZw4BtsMTz7aHNVNM mrNmx33L5kQ3nQ1nyhNn9JhzT5VZObSsLkCLqUYrcusnjvXt1V3YUjisp7rGtgX2gGiKPg qcB9GPuCT+h4A6IeTuCj2HBPEdprvci8Lq4jn/kxucXsMBXR5AaAPB5L+p4IIbppNLGB2i utaMWyD+C/GT8HXsa8wHwYuzmUcVv7SvSJoDAyllSnQf4bOQ4OTlDjGqbXWLR1sJJ7NkKP rS0uVSZCvx15PnIRos3ddkg4OXl6G1gsoKqKz0O4jslVLdSZy1bs0a1hdPeNgwmMIZd54W kqT2SyjcQrc8PdKyV+f65uHROsuo11ic6PagyJdYShPDXq4g/x1Jsy3ORjow X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Oct 2026 10:54:32 -0400 (EDT) Message-ID: Date: Fri, 2 Oct 2026 07:54:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Why is materialized view creation a "security-restricted operation"? To: Ron Johnson , pgsql-general References: <77826d7580a9488ca28eb4bcfe94aa37@stmuk.bayern.de> <61488cb9-5b84-449a-9886-e0d3b9671aa6@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/2/26 3:19 AM, Ron Johnson wrote: > On Thu, Oct 1, 2026 at 8:35 PM David G. Johnston > > wrote: > > On Thu, Oct 1, 2026 at 4:56 PM Ron Johnson > 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 , and butter sauce. > Don't boil me, I'm still alive. > lobster! -- Adrian Klaver adrian.klaver@aklaver.com