Connect a ParadeDB-enabled PostgreSQL database to Visual Studio Code for seamless SQL development and AI-powered search.
ParadeDB adds vector search and full-text capabilities to PostgreSQL. Connecting it to VS Code lets you write, run, and debug SQL inside your IDE, harnessing ParadeDB while enjoying VS Code features like IntelliSense, Git, and Galaxy’s AI copilot.
Install “PostgreSQL” by Microsoft (ms-pgsql). It offers connection management, query execution, result grids, and connection-string secrets storage. Galaxy users get additional AI context in the SQL editor.
1) PostgreSQL 14+ with CREATE EXTENSION paradedb;
executed on your database. 2) A database role with CONNECT
and USAGE
on the ParadeDB schema. 3) VS Code ≥1.80 with the PostgreSQL extension enabled.
Use the URI pattern:postgresql://<user>:<password>@<host>:<port>/<dbname>?options=-c%20search_path%3Dpublic,paradedb
This sets search_path
so ParadeDB functions resolve without schema qualification.
Ctrl+Shift+P
→ “PostgreSQL: Add Connection”.Create a scratch SQL file and run:
SELECT id, name FROM Customers ORDER BY created_at DESC LIMIT 5;
The result grid should show the latest customers, confirming ParadeDB is reachable from VS Code.
SELECT p.id, p.name, v.distance
FROM Products p
JOIN paradedb.ivfflat_search(
'Products_embedding',
ARRAY[0.12,0.33,0.44,0.11]::vector,
5
) v ON v.item_id = p.id;
This query returns the five products most similar to the supplied embedding. Use VS Code’s result grid to inspect the distance
column.
• Store connection strings in .env
files and reference them with VS Code variables. • Use search_path
to avoid schema clutter. • Format queries with VS Code’s built-in formatter before committing. • Leverage Galaxy’s AI copilot to explain ParadeDB errors instantly.
Yes. Append ?sslmode=require
to the connection string or configure the PostgreSQL extension’s advanced settings for certificates.
Galaxy’s copilot recognizes ParadeDB functions like ivfflat_search
and provides signature help once the extension is installed on your database.
1) Disconnect from the database in VS Code. 2) Run ALTER EXTENSION paradedb UPDATE;
in a psql session. 3) Reconnect. VS Code picks up new functions automatically.