pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: a17764530215@gmail.com <a17764530215@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org <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".
Date: Tue, 22 Aug 2023 09:26:45 -0400
Message-ID: <3093016.1692710805@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwa5zpmWp8L+6cdF=-uKQeW+VQhb+eOx_4J14y=RGv=zrA@mail.gmail.com>
References: <18065-006818db2efe479f@postgresql.org>
	<CAKFQuwa5zpmWp8L+6cdF=-uKQeW+VQhb+eOx_4J14y=RGv=zrA@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tuesday, August 22, 2023, PG Bug reporting form <noreply@postgresql.org>
> 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





view thread (5+ messages)  latest in thread

Message-ID: <3093016.1692710805@sss.pgh.pa.us>
Permalink:  ../3093016.1692710805@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3093016.1692710805@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, 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: <3093016.1692710805@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox