Re: FOR PORTION OF does not recompute GENERATED STORED columns that depend on the range column

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com>
Cc: jian he <jian(dot)universality(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: FOR PORTION OF does not recompute GENERATED STORED columns that depend on the range column
Date: 2026-05-12 20:34:18
Message-ID: agOOykf2HV26yVfU@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

FOR PORTION OF doesn't seem to work well with virtual generated columns,
either. The following example seg-faults on my machine:

create table t (a int, b int4range generated always as (int4range(a, a + 1)) virtual);
insert into t values (1);
delete from t for portion of b from 1 to 2;

--
nathan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2026-05-12 20:38:30 Re: [PATCH] libpq: try all addresses for a host before moving to next on target_session_attrs mismatch
Previous Message Bruce Momjian 2026-05-12 20:31:42 Re: First draft of PG 19 release notes