mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
17 lines
635 B
SQL
17 lines
635 B
SQL
-- =============================================================================
|
|
-- PostgreSQL Extensions Initialization
|
|
-- This script runs automatically on first database initialization
|
|
-- =============================================================================
|
|
|
|
-- pgvector: Vector similarity search for embeddings/RAG
|
|
CREATE EXTENSION IF NOT EXISTS vector;
|
|
|
|
-- Verify extension is available
|
|
DO $$
|
|
BEGIN
|
|
IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname = 'vector') THEN
|
|
RAISE EXCEPTION 'pgvector extension failed to install';
|
|
END IF;
|
|
RAISE NOTICE 'pgvector extension installed successfully';
|
|
END $$;
|