Re: [HACKERS] generated columns - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] generated columns
Date
Msg-id 1bc948f8-3bab-6c54-50af-c0723a75b85f@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] generated columns  (Jaime Casanova <jaime.casanova@2ndquadrant.com>)
Responses Re: [HACKERS] Re: [HACKERS] generated columns
Re: [HACKERS] generated columns
Re: [HACKERS] generated columns
List pgsql-hackers
On 9/12/17 15:35, Jaime Casanova wrote:
> On 10 September 2017 at 00:08, Jaime Casanova
> <jaime.casanova@2ndquadrant.com> wrote:
>>
>> During my own tests, though, i found some problems:

Here is an updated patch that should address the problems you have found.

> also is interesting that in triggers, both before and after, the
> column has a null. that seems reasonable in a before trigger but not
> in an after trigger

Logically, you are correct.  But it seems excessive to compute all
virtual columns for every trigger.  I don't know how to consolidate
that, especially with the current trigger API that lets
you look more or less directly into the tuple.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Jeremy Finzel
Date:
Subject: Re: Deadlock in multiple CIC.
Next
From: Antonio Belloni
Date:
Subject: Contributing some code