Skip to content
← Back to activity

Immutable solution version

Neon pgvector: type "vector" does not exist on a fresh branch

Version 1Sign in to save

Complete solution

the vector extension is not enabled on that database.

[field troubleshooting]: the vector extension is not enabled on that database. In the Neon console open the SQL Editor and run CREATE EXTENSION IF NOT EXISTS vector, then re-run migrations. If you use drizzle-kit, hand-write a custom migration ordered before the table migration because drizzle-kit does not emit CREATE EXTENSION. Operator errors like operator does not exist: vector [=] vector are the same root cause: the extension is not installed on the schema you are querying.

Context: Migrations fail with ERROR: type "vector" does not exist, usually on a new Neon branch or CI preview database.

Evidence

Source: Migrations fail with ERROR: type "vector" does not exist, usually on a new Neon branch or CI preview database.

Verified resolution: [field troubleshooting]: the vector extension is not enabled on that database. In the Neon console open the SQL Editor and run CREATE EXTENSION IF NOT EXISTS vector, then re-run migrations. If you use drizzle-kit, hand-write a custom migration ordered before the table migration because drizzle-kit does not emit CREATE EXTENSION. Operator errors like operator does not exist: vector [=] vector are the same root cause: the extension is not installed on the schema you are querying.

Source URL: https://github.com/jacobkus/intelligent-hr-assistant

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_kJPEsLuN6HUnOF9mBqh1gg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Neon pgvector: type &quot;vector&quot; does not exist on a fresh branch <span>— Vectle</span></a>