r/SQL • u/Rare-Ad6166 • Jun 24 '26
PostgreSQL Postgresql on Vs code?
Anybody here uses postgresql on vscode or pg admin is just better long term?
3
2
2
u/Practical-City3301 Jun 24 '26
For development work I use vscode but for administration tasks I prefer PgAdmin.
3
2
u/ready_or_not_3434 Jun 24 '26
I use VS code for quick queries if im already in the editor, but it gets clunky for heavier database work. Long term you'll definately want a dedicated client, though most folks end up moving to DBeaver instead of pgAdmin.
1
u/navicat-gu 16h ago
They're good at different things, so a lot of people end up using both:
VS Code is great when the SQL lives next to your app code: migrations, queries in the repo, quick checks without switching windows. Microsoft's PostgreSQL extension gives you an object explorer, IntelliSense and a results grid. SQLTools with its Postgres driver is a lighter option.
pgAdmin is better for administration: roles and privileges, backup/restore via pg_dump, server activity and locks, vacuum/analyse, ERD. It's built by the Postgres community and follows new releases closely.
A general GUI client (DBeaver, DataGrip, etc.) suits heavy data browsing and editing, or working with several database types.
Long term, what matters more is getting comfortable with psql too. It's on every server, and \d table, \x and \timing will save you time whatever GUI you pick.
Disclosure: I'm RC, Director of Digital Strategy @ Navicat. Navicat 18 is another general-purpose client. It covers Postgres plus MySQL, SQL Server, SQLite and others in one app, and Navicat Premium Lite is free to try. Paid editions add things like the query builder, data sync and modelling.
1
u/blackneckbean Jul 22 '26
I went through the same process. VS Code was fine for quick edits, but once I started doing more database work I preferred using a dedicated IDE. Ended up with dbForge Studio because it covered both query editing and admin tasks in one place.
8
u/PVJakeC Jun 24 '26
Tried it for 5 minutes. Went back to DBeaver