Re: Bug: Rule actions see wrong values for generated columns (NEW.gen reads OLD value)

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Peter Eisentraut <peter(at)eisentraut(dot)org>
Subject: Re: Bug: Rule actions see wrong values for generated columns (NEW.gen reads OLD value)
Date: 2026-04-13 08:30:39
Message-ID: CAMbWs4-_nPuNSKeaEnU81MQK8fKq5Lr5W0dYhzcL4DW61KLNHQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Apr 13, 2026 at 4:27 PM SATYANARAYANA NARLAPURAM
<satyanarlapuram(at)gmail(dot)com> wrote:
> On Mon, Apr 13, 2026 at 12:21 AM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>> Do either of you plan to propose a patch for this? If so, please go ahead and I can review it. Otherwise, I can propose a patch in a couple of days.

> I have a patch with me, let me post it shortly.

Please feel free to share your patches. I've been looking into this
as well, but I'd be happy to see independent takes on it.

- Richard

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Kim 2026-04-13 08:32:29 Re: Proposal for enabling auto-vectorization for checksum calculations
Previous Message Lakshmi N 2026-04-13 08:22:07 Show VIRTUAL keyword for virtual generated columns in pg_dump and psql