Re: pg18: Virtual generated columns are not (yet) safe when superuser selects from them

From: Feike Steenbergen <feikesteenbergen(at)gmail(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg18: Virtual generated columns are not (yet) safe when superuser selects from them
Date: 2025-06-05 13:54:28
Message-ID: CAK_s-G0iCtUbi-oPSxrseNeu463Jywq7rzRFkaoh1M79Cs7p5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 5 Jun 2025 at 12:49, Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
> I propose to address this by not allowing the use of user-defined
> functions in generation expressions for now. The attached patch
> implements this. This assumes that all built-in functions are
> trustworthy, for this purpose, which seems likely true and likely
desirable.
>
> I think the feature is still useful like that, and this approach
> provides a path to add new functionality in the future that grows this
> set of allowed functions, for example by allowing some configurable set
> of "trusted" functions or whatever.

+1

I really like this feature and it would be great if it gets into
pg18, even with some restrictions, thank you

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2025-06-05 14:06:14 Re: Question Regarding Merge Append and Parallel Execution of Index Scans on Partitioned Table
Previous Message Ayush Vatsa 2025-06-05 13:47:28 Re: Question Regarding Merge Append and Parallel Execution of Index Scans on Partitioned Table