From 113d49038ae2952407e5d54edb64b4e9a3828ad9 Mon Sep 17 00:00:00 2001 From: vgsml Date: Thu, 22 Oct 2026 23:11:02 +0200 Subject: [PATCH 1/3] spec 019: CLUSTER UPDATE EXTENSION keeps what it does not name An update rewrote the item's repository (resolved again with no FROM, which its grammar did not take: moved on a node trusting one repository, refused on one trusting several) and its comment (written empty). Now an update without FROM keeps the item's repository (still one the node trusts), without COMMENT its comment; FROM moves it. Found by hugr-platform spec 010's review (the console's update form). The install test takes postgres_scanner as DuckDB publishes it for this build's version and platform (DuckDB v2.0.0 is released): every build runs it, not only one that makes the scanner. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LdLs2iBQygBKtsApdH9Sxi --- docs/cluster.md | 5 +- specs/019-cluster-update-keeps/spec.md | 33 ++++++++++++ src/acl_cluster.cpp | 72 ++++++++++++++++++++------ test/cpp/test_acl_cluster_install.cpp | 55 +++++++++++++++----- 4 files changed, 132 insertions(+), 33 deletions(-) create mode 100644 specs/019-cluster-update-keeps/spec.md diff --git a/docs/cluster.md b/docs/cluster.md index 2e9ab1b..577830b 100644 --- a/docs/cluster.md +++ b/docs/cluster.md @@ -27,7 +27,7 @@ placed; `manage` and `passthrough` are placed like anyone. ```sql CLUSTER INSTALL EXTENSION VERSION '' [FROM ] [IN GROUP ] [COMMENT ''] -CLUSTER UPDATE EXTENSION VERSION '' [IN GROUP ] +CLUSTER UPDATE EXTENSION VERSION '' [FROM ] [IN GROUP ] [COMMENT ''] CLUSTER REMOVE EXTENSION [IN GROUP ] CLUSTER ATTACH '' AS (TYPE [, SECRET ] [,