Postgres is failing with 'could not open relation mapping file “global/pg_filenode.map” '

后端 未结 11 1054
醉话见心
醉话见心 2020-12-12 23:49

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.

11条回答
  •  长情又很酷
    2020-12-13 00:31

    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)

提交回复
热议问题