pgvector extension error

From: "Zacher, Stacy" <szacher(at)mcw(dot)edu>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: pgvector extension error
Date: 2025-01-17 17:13:23
Message-ID: CH2PR01MB5765698BB9F71CEB662D5AE4AD1B2@CH2PR01MB5765.prod.exchangelabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello:

We are having issues getting the pgvector extension to work in a database.

* Installed the code
* Created the extension in a database - it says it already exists but it's not there:

postgres=# \c dbdev
You are now connected to database "dbdev" as user "postgres".
dbdev=# select * from pg_extension;
oid | extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
-------+---------+----------+--------------+----------------+------------+-----------+--------------
13422 | plpgsql | 10 | 11 | f | 1.0 | |
(1 row)

dbdev=# create extension if not exists vector;
ERROR: type "vector" already exists
dbdev=# drop extension pgvector;
ERROR: extension "pgvector" does not exist

Works in a different database on the same server:

dbdev=# \c dbrag;
You are now connected to database "dbrag" as user "postgres".
It works in this database below.
dbrag=# select * from pg_extension;
oid | extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
--------+---------+----------+--------------+----------------+------------+-----------+--------------
13422 | plpgsql | 10 | 11 | f | 1.0 | |
157739 | vector | 10 | 2200 | t | 0.7.4 | |
(2 rows)

Question: how can I fix the error in the dbdev database?

We already did a reinstall of the extension code and that didn't resolve it.

Thank you,

Stacy Zacher
Enterprise Database Administrator III | Information Services
Medical College of Wisconsin
szacher(at)mcw(dot)edu<mailto:szacher(at)mcw(dot)edu>
414-955-5654

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2025-01-17 17:19:44 Re: pgvector extension error
Previous Message Franjo Stipanovic 2025-01-17 17:12:07 Re: Different Autovacuum Settings on Master and Replica in Streaming Replication