I\'m having an issue with my install of postgres in my development environment and I need some help diagnosing it. I haven\'t yet had any luck in tracking down a solution.>
My step-by-step solution in fedora:
/bin/systemctl stop postgresql.service (Stop the service)rm -rf /var/lib/pgsql/data (Remove the "data" direcotry)postgresql-setup initdb (Recreate the "data" directory)/bin/systemctl start postgresql.service (Start the service)It is also useful to check the permissions of the "data" directory:
chown -R postgres:postgres
(Kudos to @LuizFernandodaSilva & @user4640867)