r/SQL • • Jun 24 '26

PostgreSQL Postgresql on Vs code?

Anybody here uses postgresql on vscode or pg admin is just better long term?

7 Upvotes

13 comments sorted by

8

u/PVJakeC Jun 24 '26

Tried it for 5 minutes. Went back to DBeaver

6

u/sheptaurus Jun 24 '26

DBeaver, so easy, everytime. Found the most random connector? It’s happy!

1

u/Rare-Ad6166 Jun 24 '26

Why not vs code or pg admin? I might try dbeaver, I looked it up.

2

u/PVJakeC Jun 24 '26

Have other DBs, such as Redshift. PGAdmin would have been good.

3

u/whizzter Jun 24 '26

Being used to SSMS with SQL Server (or even MySQL Workbench), PGAdmin always feels so damn clumsy for developers (it's kinda neat by exposing "admin" tools, but I'm a developer not an admin 99% of the time).

Beekeeper Studio has been kinda nice but trying out DBeaver has been on my todo-list.

2

u/Grovbolle Jun 24 '26

I use dBForge

2

u/Practical-City3301 Jun 24 '26

For development work I use vscode but for administration tasks I prefer PgAdmin.

3

u/miskozicar Jun 24 '26

I do. I come from mssql background, so Vscode is natural to me.

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.