pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How do I disconnect other users gracefully from a database???
2+ messages / 2 participants
[nested] [flat]

* How do I disconnect other users gracefully from a database???
@ 2003-06-23 15:50 P G <pg_dba@yahoo.com>
  2003-06-23 16:58 ` Re: How do I disconnect other users gracefully from a scott.marlowe <scott.marlowe@ihs.com>
  0 siblings, 1 reply; 2+ messages in thread

From: P G @ 2003-06-23 15:50 UTC (permalink / raw)
  To: pgsql-admin

What is the graceful way to disconnect other users
from a database without shutting it down?  Is there a
command that I can use within psql or is it simply
"kill $PID_OF_USER" from the OS shell command line?

Thanks.


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How do I disconnect other users gracefully from a
  2003-06-23 15:50 How do I disconnect other users gracefully from a database??? P G <pg_dba@yahoo.com>
@ 2003-06-23 16:58 ` scott.marlowe <scott.marlowe@ihs.com>
  0 siblings, 0 replies; 2+ messages in thread

From: scott.marlowe @ 2003-06-23 16:58 UTC (permalink / raw)
  To: P G <pg_dba@yahoo.com>; +Cc: pgsql-admin

On Mon, 23 Jun 2003, P G wrote:

> What is the graceful way to disconnect other users
> from a database without shutting it down?  Is there a
> command that I can use within psql or is it simply
> "kill $PID_OF_USER" from the OS shell command line?

That's how I do it, but if you're just looking to shut down / restart the 
database and need to bump everybody off, look at the -m switch to pg_ctl.

-m SHUTDOWN-MODE      May be 'smart', 'fast', or 'immediate'






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-06-23 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-23 15:50 How do I disconnect other users gracefully from a database??? P G <pg_dba@yahoo.com>
2003-06-23 16:58 ` Re: How do I disconnect other users gracefully from a scott.marlowe <scott.marlowe@ihs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox