Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill a running query #10

Closed
julien-duponchelle opened this issue Oct 27, 2014 · 8 comments
Closed

Kill a running query #10

julien-duponchelle opened this issue Oct 27, 2014 · 8 comments

Comments

@julien-duponchelle
Copy link

Nice application,

I have an enhancement suggestion. You can add an option in order to kill a running query.

Have a nice day

@sosedoff
Copy link
Owner

This seems to be interesting, however i'm not planning on getting this implemented in the next releases.

@kespindler
Copy link

It'd also be useful to know how long an ongoing query has been running. A simple javascript timer on the page would suffice for this purpose.

@sosedoff
Copy link
Owner

@kespindler javascript timer would be irrelevant in case if you run a query on non-local servers. Results
table also takes some time. So if we want to have query execution time, it has to be done via backend.

@sosedoff
Copy link
Owner

Stopping a running query is currently in works.

@codeBearer
Copy link

Is it possible to use pgweb as a service? Or what should be the proper way to deploy it?

@spaquet
Copy link

spaquet commented Sep 7, 2015

+1

@flesler
Copy link

flesler commented Jan 25, 2016

I think this should be pretty easy to make.

You already made the Activity tab, it has which one is active and what's the pid.
I imagine active queries having a "kill" button that executes this:

SELECT pg_cancel_backend(pid);

And Activity tab is refreshed. That should do no?

@sosedoff
Copy link
Owner

sosedoff commented Nov 6, 2016

Implemented in master

@sosedoff sosedoff closed this as completed Nov 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants