Combining this with the Postgres Language Server that was released this week, you can now execute statements directly within your IDE:
https://x.com/psteinroe/status/1907803477939527728