From 1bab8b92b61e4d62db12dcfb4e20e975fc696dba Mon Sep 17 00:00:00 2001 From: Sylvain Utard Date: Thu, 12 Nov 2026 16:00:03 -0800 Subject: [PATCH] Name the extension of the CREATE INDEX operator LogicalExtensionOperator::GetExtensionName() throws by default. Optimizer hooks of other extensions (match_recognize) call it on every extension operator in a plan, so CREATE INDEX on an attached Postgres database failed when one was loaded. Co-Authored-By: Claude Opus 5.5 --- src/storage/postgres_index.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/storage/postgres_index.cpp b/src/storage/postgres_index.cpp index acacc7c36..3b8bfcb63 100644 --- a/src/storage/postgres_index.cpp +++ b/src/storage/postgres_index.cpp @@ -72,6 +72,11 @@ class LogicalPostgresCreateIndex : public LogicalExtensionOperator { return planner.Make(std::move(info), table); } + // Optimizer hooks of other extensions call this on every extension operator; the default throws. + string GetExtensionName() const override { + return "postgres_scanner"; + } + void Serialize(Serializer &serializer) const override { throw NotImplementedException("Cannot serialize Postgres Create index"); }