Skip to content

Guardrails server fails to start when PostgreSQL lacks pgvector and uuid-ossp extensions #1371

@vaibhatredu

Description

@vaibhatredu

Describe the bug
The guardrails-api server fails to start when PostgreSQL database doesn't have pgvector and uuid-ossp extensions installed. However, after examining the database
schema, no embedding or vector data is actually being stored in any tables, suggesting these extensions are mandatory requirements but not functionally utilized.

To Reproduce
Steps to reproduce the behavior:

  1. Install guardrails-ai[api]==0.7.0
  2. Set up PostgreSQL without pgvector and uuid-ossp extensions
  3. Configure PostgreSQL connection: export PGHOST=localhost
  4. Run: guardrails start --config config.py
  5. Server fails with: CREATE EXTENSION "vector" and CREATE EXTENSION "uuid-ossp" errors

Expected behavior
The server should either:
• Start successfully if extensions aren't functionally required
• Clearly document why these extensions are mandatory
• Use the extensions for actual vector/embedding storage if that's the intended functionality

Library version:
guardrails-ai[api]==0.7.0

Additional context
• Database contains only guards and guards_audit tables
• No vector or embedding columns found in schema
• Extensions are hardcoded in postgres_client.py INIT_EXTENSIONS
• This creates deployment barriers for managed PostgreSQL environments
• Need clarification on whether vector functionality is planned or if extensions can be made optional

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions