{"id":925,"date":"2023-01-05T17:56:19","date_gmt":"2023-01-05T11:56:19","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=925"},"modified":"2023-01-05T17:56:19","modified_gmt":"2023-01-05T11:56:19","slug":"how-to-stop-postgresql-when-you-have-multiple-versions-of-pgsql-running-on-ubuntu","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-stop-postgresql-when-you-have-multiple-versions-of-pgsql-running-on-ubuntu.html","title":{"rendered":"How to stop Postgresql when you have multiple versions of PGSQL Running on Ubuntu"},"content":{"rendered":"\n<p>Question: How to stop Postgresql when you have multiple versions of PGSQL Running on Ubuntu<\/p>\n\n\n\n<p>You may run the following command to stop specific version of postgresql when using multiple versions of postgresql in a single system, under Ubuntu<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">systemctl stop postgresql[@version-main]<\/pre>\n\n\n\n<p>So, for example, if you have a system, with 3 postgresql server, 12, 14, 15, and would like to stop 14 and 15, then you can run the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">systemctl stop postgresql@15-main\nsystemctl stop postgresql@14-main<\/pre>\n\n\n\n<p>To disable them from booting:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">systemctl disable postgresql@15-main\nsystemctl disable postgresql@14-main<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Question: How to stop Postgresql when you have multiple versions of PGSQL Running on Ubuntu You may run the following command to stop specific version of postgresql when using multiple versions of postgresql in a single system, under Ubuntu So, for example, if you have a system, with 3 postgresql server, 12, 14, 15, and &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-stop-postgresql-when-you-have-multiple-versions-of-pgsql-running-on-ubuntu.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to stop Postgresql when you have multiple versions of PGSQL Running on Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[412,523],"tags":[710,524,198],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/925"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=925"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/925\/revisions"}],"predecessor-version":[{"id":926,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/925\/revisions\/926"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}