Skip to main content
2 of 2
clean up
Erwin Brandstetter
  • 182.2k
  • 28
  • 457
  • 620

How to drop all connections to a specific database without stopping the server?

I want to drop all connections (sessions) that are currently opened to a specific PostgreSQL database but without restarting the server or disconnecting connections to other databases.

How can I do that?

sorin
  • 1.2k
  • 3
  • 11
  • 14