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

后端 未结 11 1038
醉话见心
醉话见心 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:30

    This (https://gist.github.com/olivierlacan/e1bf5c34bc9f82e06bc0) solved my problem! I first had to:

    1. Delete Postgres.app from my Applications
    2. Delete /usr/local/var/postgres directory
    3. initdb /usr/local/var/postgres/

    Then I was able to start/stop Postgres with these 2 commands:

    Start:

    pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
    

    Stop:

    pg_ctl -D /usr/local/var/postgres stop -s -m fast
    

提交回复
热议问题