You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am unable to figure out how to fix this, i had enterprise db installed and i went ahead and deleted everything and terminated all commands in the activity monitor.
PostgreSQL by default creates two files in /tmp while it is running:
socket file: /tmp/.s.PGSQL.5432
lock file: /tmp/.s.PGSQL.5432.lock
You can check if these files are there with this command:
ls -l /tmp/.s.PGSQL.5432*
If you had EnterpriseDB installed, and force quit the server, these files might still be left. Since EnterpriseDB runs the server with a different system user, these files probably belong to a user named postgres and Postgres.app can't delete them.
If you are sure that EnterpriseDB is not running anymore, you can delete these files with sudo rm:
sudo rm /tmp/.s.PGSQL.5432*
Restart your computer after deleting the files, and then run the ls command from above to make sure they are still gone. If they reappear after a restart, you still have a PostgreSQL server running somewhere.
It works when I delete on these socket files. Do you @jakob mind to elaborate more about this, like how to know that I'm currently using an enterprise database:
If you had EnterpriseDB installed, and force quit the server, these files might still be left. Since EnterpriseDB runs the server with a different system user, these files probably belong to a user named postgres and Postgres.app can't delete them.
Activity
jakob commentedon Mar 10, 2025
PostgreSQL by default creates two files in
/tmpwhile it is running:/tmp/.s.PGSQL.5432/tmp/.s.PGSQL.5432.lockYou can check if these files are there with this command:
ls -l /tmp/.s.PGSQL.5432*If you had EnterpriseDB installed, and force quit the server, these files might still be left. Since EnterpriseDB runs the server with a different system user, these files probably belong to a user named
postgresand Postgres.app can't delete them.If you are sure that EnterpriseDB is not running anymore, you can delete these files with
sudo rm:sudo rm /tmp/.s.PGSQL.5432*Restart your computer after deleting the files, and then run the
lscommand from above to make sure they are still gone. If they reappear after a restart, you still have a PostgreSQL server running somewhere.Hope this helps!
ntvviktor commentedon Apr 29, 2025
It works when I delete on these socket files. Do you @jakob mind to elaborate more about this, like how to know that I'm currently using an enterprise database: