How to follow or kill all queries running? - postgresql

I'm using PostgreSQL extension for VSCODE to execute basic queries. However, I've executed a query that is running for a long time. I'd like to know if it's possible to track, or simply kill, all queries running through this extension.
I'm using the version 1.1.18 of this extension on remote WSL2 through SSH connection. The system running on WSL is Ubuntu 20.04. The VSCODE version is 1.58.2 running on Windows 10.

Related

Its possible to use VSCode SFTP extension with WSL/Ubuntu?

I need to use Windows in the company to development. I enabled WSL2 and installed Ubuntu 20.04. The developer environment is hosted in an AWS EC2 instance. To made changes to the developer environment I use Natizyskunk's SFTP extension for VSCode.
However, the extension is not working when VSCode is launched from a WSL environment. It fails to sync, with no error message. I think this is because WSL2 is behaving like a remote task in VSCode. Can someone help me? I hate using Windows for development, and I would like to use WSL2 with SFTP extension instead.

How to run windows installation of PostgreSQL on wsl?

So I'm trying to get PostgreSQL to work on my windows device. I installed it through wsl and it all works, but I hear its safer to do the windows install and run it through wsl. How do I do this? What port do i give to the windows installation of PostgreSQL? Thanks!

Visual Studio Code: Remote-SSH connect to Windows Server 2019

I've set up my VSCode Insider to connect th a Windows 2019 Server via the Remote-SSH extension. Is it correct, that I need a WSL installed so that it can set up the VSCode-Server and then it is running within the WSL distro when I'm connected?
I thought it would run on Windows instead.
The stable VS Code 1.40 release does not support for Windows ssh hosts: https://code.visualstudio.com/docs/remote/ssh#_remote-ssh-limitations
This feature is still experimental and only enabled in VS Code insiders builds when you set "remote.SSH.remoteIsWindows": true (Make sure to use the nightly ssh extension too) See this issue for details
You do not need to run WSL. You need to install a ssh client on your local machine (the machine that you will run VS Code), and install a ssh server on your remote machine. That's all you need. Your local VS Code uses the ssh client to connect to that ssh server on the remote machine. Details of how to do this can be found here, including opening firewall ports in the case of Windows.

Cannot launch SQL Shell from PostgreSQL Installation on Windows 10

I have recently installed PostgreSQL to my Windows 10 following this tutorial. When I completed the installation, I failed to launch the SQL shell -- I could only see the pgAdmin interface in my installation. I uninstalled and installed PostgreSQL a few times, and the result was always the same. Would anyone be able to help with figuring out how can I get access to the SQL shell?
Thank you!

Using PostgreSQL installed in Windows inside WSL as well?

I have installed PostgreSQL version 10 in Windows. Since I'm doing Web development work and using WSL frequently I would like to use PostgreSQL from within WSL too.
Is there anyway in which we are able to link the PostgreSQL software installed in Windows with WSL environment so that any new databases created inside WSL is available in the Windows environment also?
1) PostgreSQL10 installed on Windows environment.
2) PostgresSQL9.5 installed inside WSL environment.
My Question is: how do I connect both Windows configurations WSL to use the same PostgreSQL instance?