agora inbox for pgsql-bugs@postgresql.org
help / color / mirror / Atom feedFrom: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: svenna01@gmail.com
Subject: BUG #19559: ALTER TABLE SET EXPRESSION / ALTER TYPE fails on columns referenced by a property graph
Date: Sat, 18 Jul 2026 11:21:30 +0000
Message-ID: <19559-6e5d454d86f920e7@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 19559
Logged by: Fredrik Svensson
Email address: svenna01@gmail.com
PostgreSQL version: 19beta2
Operating system: Linux (Debian trixie, official postgres:19beta2
Description:
On 19beta2:
CREATE TABLE t (id int PRIMARY KEY, a int, b int,
s int GENERATED ALWAYS AS (a + b) STORED);
ALTER TABLE t ALTER COLUMN s SET EXPRESSION AS (a - b); -- ok
CREATE PROPERTY GRAPH g
VERTEX TABLES (t KEY (id) LABEL v PROPERTIES (id, s));
ALTER TABLE t ALTER COLUMN s SET EXPRESSION AS (a * b);
ERROR: unexpected object depending on column: property s of label v
of vertex t of property graph g
Cause:
CREATE PROPERTY GRAPH records per-column dependencies (element keys via
array_of_attnums_to_objectaddrs, property expressions via
recordDependencyOnSingleRelExpr), but RememberAllDependentForRebuilding() in
tablecmds.c has no cases for PropgraphElementRelationId /
PropgraphLabelPropertyRelationId, so they reach the default: elog.
Still present in master as of dde9a87d4d0.
Expected, following the existing pattern in that switch:
- AT_AlterColumnType: user-facing ERRCODE_FEATURE_NOT_SUPPORTED error.
- AT_SetExpression: no error — column attnum and type are unchanged, so
there is nothing to rebuild.
Message-ID: <19559-6e5d454d86f920e7@postgresql.org>
Permalink: ../19559-6e5d454d86f920e7@postgresql.org/
Also on: postgresql.org/message-id/19559-6e5d454d86f920e7@postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, svenna01@gmail.com
Subject: Re: BUG #19559: ALTER TABLE SET EXPRESSION / ALTER TYPE fails on columns referenced by a property graph
In-Reply-To: <19559-6e5d454d86f920e7@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox