To disable PostgreSQL on Linux Manjaro so that it doesn’t consume your RAM and CPU in the background, you can stop and disable the PostgreSQL service. Later, when you need it again, you can re-enable and start the service. Here’s how you can do it:
Disable PostgreSQL
-
Stop the PostgreSQL service: This will immediately stop PostgreSQL from running.
-
Disable the PostgreSQL service: This will prevent PostgreSQL from starting automatically at boot.
Enable PostgreSQL
When you need to use PostgreSQL again, you can enable and start the service:
-
Enable the PostgreSQL service: This will re-enable PostgreSQL to start automatically at boot.
-
Start the PostgreSQL service: This will start PostgreSQL immediately.
Verify Service Status
You can check the status of the PostgreSQL service at any time using:
This will show you whether PostgreSQL is currently running and if it’s enabled to start at boot.