Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qYRPI-001iL6-LR for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Aug 2023 13:26:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qYRPH-001Q7U-3l for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Aug 2023 13:26:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qYRPG-001Q7L-R1 for pgsql-bugs@lists.postgresql.org; Tue, 22 Aug 2023 13:26:50 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qYRPD-000LQi-Pe for pgsql-bugs@lists.postgresql.org; Tue, 22 Aug 2023 13:26:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 37MDQjFq3093017; Tue, 22 Aug 2023 09:26:45 -0400 From: Tom Lane To: "David G. Johnston" cc: "a17764530215@gmail.com" , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #18065: An error occurred when attempting to add a column of type "vector" to a table named "vector". In-reply-to: References: <18065-006818db2efe479f@postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Tue, 22 Aug 2023 05:51:28 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3093015.1692710805.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 22 Aug 2023 09:26:45 -0400 Message-ID: <3093016.1692710805@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Tuesday, August 22, 2023, PG Bug reporting form > wrote: >> When I run: >> create table if not exists "vector" (); >> alter table "vector" add column if not exists "fz_vector1_embedding" >> vector(1536); >> I got an error: >> ERROR: type modifier is not allowed for type "vector" >> LINE 1: ..." add column if not exists "fz_vector1_embedding" vector(153... > You are in the wrong place, core doesn’t have this type. I think it's basically a search path problem: the table's composite type "vector" is masking the extension's type. Try schema-qualifying "vector" with the appropriate schema name. regards, tom lane