pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDropping a DB while it is in use?
2+ messages / 2 participants
[nested] [flat]
* Dropping a DB while it is in use?
@ 2003-12-29 00:52 Chad N. Tindel <chad@tindel.net>
0 siblings, 1 reply; 2+ messages in thread
From: Chad N. Tindel @ 2003-12-29 00:52 UTC (permalink / raw)
To: pgsql-admin
Is there a way to kill all the connections to a DB so that it can safely
be dropped? Given that connections to a DB can come from any number of clients,
the only way I've found to do this is to shutdown postgres, which is clearly
an unacceptable solution because it stops access to the other 50 or so databases
that are being used on the system.
Thanks,
Chad
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Dropping a DB while it is in use?
@ 2004-01-05 01:32 Gaetano Mendola <mendola@bigfoot.com>
parent: Chad N. Tindel <chad@tindel.net>
0 siblings, 0 replies; 2+ messages in thread
From: Gaetano Mendola @ 2004-01-05 01:32 UTC (permalink / raw)
To: pgsql-admin; +Cc: Chad N. Tindel <chad@tindel.net>
Chad N. Tindel wrote:
> Is there a way to kill all the connections to a DB so that it can safely
> be dropped? Given that connections to a DB can come from any number of clients,
> the only way I've found to do this is to shutdown postgres, which is clearly
> an unacceptable solution because it stops access to the other 50 or so databases
> that are being used on the system.
You can do a kill -INT to backend that are managing the connection.
Regards
Gaeatano Mendola
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-01-05 01:32 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-29 00:52 Dropping a DB while it is in use? Chad N. Tindel <chad@tindel.net>
2004-01-05 01:32 ` Gaetano Mendola <mendola@bigfoot.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