Re: Virtual generated columns

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, jian he <jian(dot)universality(at)gmail(dot)com>
Subject: Re: Virtual generated columns
Date: 2024-11-12 16:06:37
Message-ID: 51875199-d5f5-41ed-92dc-3e7b1b996991@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 07.11.24 10:35, Dean Rasheed wrote:
> On Tue, 5 Nov 2024 at 16:17, Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>>
>> New patch version.
>
> What happened with the RLS support? It looks like you moved the code
> to expand virtual generated columns back to the first loop in
> fireRIRrules(), which doesn't work because RLS policies might contain
> references to virtual generated columns.
>
> In the v7 patch, it was done in a separate loop, after the RLS policy
> loop, which I thought was fine, except that I didn't like having a
> whole new loop, opening and closing all the relations in the query.
> Was there some other problem with that approach?

I have no idea what happened there. I must have used the wrong patch
version at some point. I have applied your patch to fix that back up.
Also thanks for the RLS test cases.

Attachment Content-Type Size
v9-0001-Virtual-generated-columns.patch text/plain 198.2 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2024-11-12 16:07:14 Re: Virtual generated columns
Previous Message Robert Haas 2024-11-12 16:02:53 Re: doc: pgevent.dll location