Cannot kill Postgres process : <p>I keep trying to kill a PostgreSQL process that is running on port 5432 to no avail. Whenever I type <code>sudo lsof -i :5432</code>, I see something like the below: </p>

<pre><code>COMMAND  PID     USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
postgres 587 postgres    4u  IPv6 0x218f97e9af5d0303      0t0  TCP *:postgresql (LISTEN)
postgres 587 postgres    5u  IPv4 0x218f97e9ae0f6c63      0t0  TCP *:postgresql (LISTEN)
</code></pre>

<p>I then try to kill the process 587 in this example with <code>sudo kill -9 587</code>, but then another process automatically restarts on the same port! I have tried killing it on activity monitor as well to no avail. Please help?</p>

<p>Thanks,
Laura</p>
