Re: [GENERAL] Killing a session in windows

2007-12-21 Thread Bruce Momjian
Howard Cole wrote: > > Wow, yea, I see that now, but it is alone a paragraph above. I updated > > the text to: > > > >The program provides a convenient > >interface for sending these signals to shut down the server. > >Alternatively, you can send the signal directly using > >kill

Re: [GENERAL] Killing a session in windows

2007-12-19 Thread Howard Cole
Bruce Momjian wrote: Alvaro Herrera wrote: Bruce Momjian wrote: Alvaro Herrera wrote: Huh, why is it awkward? Alternatively, you can send the signal directly using kill (or pg_ctl kill TERM [process id]). I think we should mention Windows in there somewhere, b

Re: [GENERAL] Killing a session in windows

2007-12-17 Thread Bruce Momjian
Alvaro Herrera wrote: > Bruce Momjian wrote: > > Alvaro Herrera wrote: > > > > Huh, why is it awkward? > > > > > > Alternatively, you can send the signal directly using kill > > > (or pg_ctl kill TERM [process id]). > > > > I think we should mention Windows in there somewhere, because it

Re: [GENERAL] Killing a session in windows

2007-12-17 Thread Alvaro Herrera
Bruce Momjian wrote: > Alvaro Herrera wrote: > > Huh, why is it awkward? > > > > Alternatively, you can send the signal directly using kill > > (or pg_ctl kill TERM [process id]). > > I think we should mention Windows in there somewhere, because it isn't > "alternatively" on Windows. Ac

Re: [GENERAL] Killing a session in windows

2007-12-17 Thread Bruce Momjian
Alvaro Herrera wrote: > Bruce Momjian wrote: > > Howard Cole wrote: > > > > > > Which you can do, no? I thought pg_ctl's kill option was invented > > > specifically to make this less painful on Windows. > > > > I shall look into the pg_ctl options to see if the kill option does > > > >

Re: [GENERAL] Killing a session in windows

2007-12-17 Thread Alvaro Herrera
Bruce Momjian wrote: > Howard Cole wrote: > > > > Which you can do, no? I thought pg_ctl's kill option was invented > > specifically to make this less painful on Windows. > > > I shall look into the pg_ctl options to see if the kill option does > > > what taskill cannot (thanks for the

Re: [GENERAL] Killing a session in windows

2007-12-16 Thread Bruce Momjian
Howard Cole wrote: > > Which you can do, no? I thought pg_ctl's kill option was invented > specifically to make this less painful on Windows. > > I shall look into the pg_ctl options to see if the kill option does > > what taskill cannot (thanks for the heads up on that) > > > Using >

Re: [GENERAL] Killing a session in windows

2007-12-13 Thread Howard Cole
Thomas H. wrote: wasn't the OP asking for a way to kill active connections to a db? afaik pgAdmin3 does provide this functionality: pgadmin3 > tools > server status there you can easily terminate connections & transactions to a particular db. works pretty well in my test, i can kill active c

Re: [GENERAL] Killing a session in windows

2007-12-13 Thread Howard Cole
Which you can do, no? I thought pg_ctl's kill option was invented specifically to make this less painful on Windows. I shall look into the pg_ctl options to see if the kill option does what taskill cannot (thanks for the heads up on that) Using $ pg_ctl kill TERM [pid] worked great. Since v

Re: [GENERAL] Killing a session in windows

2007-12-13 Thread Thomas H.
wasn't the OP asking for a way to kill active connections to a db? afaik pgAdmin3 does provide this functionality: pgadmin3 > tools > server status there you can easily terminate connections & transactions to a particular db. works pretty well in my test, i can kill active connections and dro

Re: [GENERAL] Killing a session in windows

2007-12-13 Thread Howard Cole
Thomas H. wrote: On Tue, Dec 11, 2007 at 05:50:46PM -0500, Tom Lane wrote: Alvaro Herrera <[EMAIL PROTECTED]> writes: Howard Cole wrote: I take it from the lack of response that nobody knows how to kill a connection from the postgresql side on windows? You can't, short of sending a signal t

Re: [GENERAL] Killing a session in windows

2007-12-13 Thread Howard Cole
Dann Corbit wrote: What happens if you disable the net card on your server machine? Hi Dann, The connection is from IIS worker process running on the same machine. My problem is that I want to disable connections for a single database. Disabling the pgsql service or disabling the card (can

Re: [GENERAL] Killing a session in windows

2007-12-12 Thread Thomas H.
On Tue, Dec 11, 2007 at 05:50:46PM -0500, Tom Lane wrote: Alvaro Herrera <[EMAIL PROTECTED]> writes: Howard Cole wrote: I take it from the lack of response that nobody knows how to kill a connection from the postgresql side on windows? You can't, short of sending a signal to the process or r

Re: [GENERAL] Killing a session in windows

2007-12-12 Thread Magnus Hagander
On Tue, Dec 11, 2007 at 05:50:46PM -0500, Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > Howard Cole wrote: > >> I take it from the lack of response that nobody knows how to kill a > >> connection from the postgresql side on windows? > > > You can't, short of sending a signal to

Re: [GENERAL] Killing a session in windows

2007-12-11 Thread Dann Corbit
> -Original Message- > From: [EMAIL PROTECTED] [mailto:pgsql-general- > [EMAIL PROTECTED] On Behalf Of Howard Cole > Sent: Tuesday, December 11, 2007 2:21 PM > To: 'PgSql General' > Subject: Re: [GENERAL] Killing a session in windows > > Hello everyon

Re: [GENERAL] Killing a session in windows

2007-12-11 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Howard Cole wrote: >> I take it from the lack of response that nobody knows how to kill a >> connection from the postgresql side on windows? > You can't, short of sending a signal to the process or restarting the > service. Which you can do, no? I th

Re: [GENERAL] Killing a session in windows

2007-12-11 Thread Alvaro Herrera
Howard Cole wrote: > Hello everyone, > > I take it from the lack of response that nobody knows how to kill a > connection from the postgresql side on windows? You can't, short of sending a signal to the process or restarting the service. -- Alvaro Herrera Valdivia, Chile ICBM: S 39ยบ 49'

Re: [GENERAL] Killing a session in windows

2007-12-11 Thread Howard Cole
Hello everyone, I take it from the lack of response that nobody knows how to kill a connection from the postgresql side on windows? Is there another way around this? In the end I created another database and changed all my code to use the new database, the original database is still there (now

[GENERAL] Killing a session in windows

2007-12-07 Thread Howard Cole
Hi, I've written about this problem before and thanks to Bill Bartlett and Richard Huxton for previous replies, but the problem keeps coming up... I'm running postgresql V8.2.5 (I think!) on W2K3 Server and occasionally I want to rebuild a database. However I cannot drop the database because

Re: [GENERAL] Killing a session on windows

2007-11-29 Thread Bill Bartlett
Of Howard Cole Sent: Thursday, November 29, 2007 5:55 AM To: 'PgSql General' Subject: [GENERAL] Killing a session on windows I have a database I want to drop on a windows server. Unfortunately I cannot restart postgres because it is running several live database. To kill the offending

Re: [GENERAL] Killing a session on windows

2007-11-29 Thread Richard Huxton
Howard Cole wrote: I have a database I want to drop on a windows server. Unfortunately I cannot restart postgres because it is running several live database. To kill the offending session, I tried select * from pg_stat_activity to find the PID of the session, and then tried to kill it with c

[GENERAL] Killing a session on windows

2007-11-29 Thread Howard Cole
I have a database I want to drop on a windows server. Unfortunately I cannot restart postgres because it is running several live database. To kill the offending session, I tried select * from pg_stat_activity to find the PID of the session, and then tried to kill it with command line: taskk

Re: [GENERAL] Killing a session

2004-08-21 Thread Vitaly Belman
Even better. Thanks =). On Sat, 21 Aug 2004 20:14:53 -0400, Tom Lane <[EMAIL PROTECTED]> wrote: > > > Vitaly Belman <[EMAIL PROTECTED]> writes: > > Is there a way to kill a session in PostrgeSQL? I ran a bad query by > > mistake and I don't want to shut the whole database just to quit using > >

Re: [GENERAL] Killing a session

2004-08-21 Thread Tom Lane
Vitaly Belman <[EMAIL PROTECTED]> writes: > Is there a way to kill a session in PostrgeSQL? I ran a bad query by > mistake and I don't want to shut the whole database just to quit using > the whole CPU. ISTM what you really want is query cancel, not whole-session kill. Try "kill -INT ".

Re: [GENERAL] Killing a session

2004-08-21 Thread Gregory S. Williamson
variants, though. HTH Greg Williamson DBA GlobeXplorer LLC -Original Message- From: Vitaly Belman [mailto:[EMAIL PROTECTED] Sent: Sat 8/21/2004 1:32 PM To: [EMAIL PROTECTED] Cc: Subject:[GENERAL] Killing a session Is there a way to kill a session in PostrgeSQL? I ran a bad

[GENERAL] Killing a session

2004-08-21 Thread Vitaly Belman
Is there a way to kill a session in PostrgeSQL? I ran a bad query by mistake and I don't want to shut the whole database just to quit using the whole CPU. -- ICQ: 1912453 AIM: VitalyB1984 MSN: [EMAIL PROTECTED] Yahoo!: VitalyBe ---(end of broadcast)---