"postgres killing connections on db" Code Answer's
You're definitely familiar with the best coding language SQL that developers use to develop their projects and they get all their queries like "postgres killing connections on db" answered properly. Developers are finding an appropriate answer about postgres killing connections on db related to the SQL coding language. By visiting this online portal developers get answers concerning SQL codes question like postgres killing connections on db. Enter your desired code related query in the search bar and get every piece of information about SQL code related question on postgres killing connections on db.
postgres killing connections on db
SELECT
pg_terminate_backend(pid)
FROM
pg_stat_activity
WHERE
-- don't kill my own connection!
pid <> pg_backend_pid()
-- don't kill the connections to other databases
AND datname = 'database_name'
;
Source: stackoverflow.com
All those coders who are working on the SQL based application and are stuck on postgres killing connections on db can get a collection of related answers to their query. Programmers need to enter their query on postgres killing connections on db related to SQL code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about postgres killing connections on db for the programmers working on SQL code while coding their module. Coders are also allowed to rectify already present answers of postgres killing connections on db while working on the SQL language code. Developers can add up suggestions if they deem fit any other answer relating to "postgres killing connections on db". Visit this developer's friendly online web community, CodeProZone, and get your queries like postgres killing connections on db resolved professionally and stay updated to the latest SQL updates.