0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[postgresql]エラー:FATAL: could not open directory "pg_notify": No such file or directory

Last updated at Posted at 2024-01-28

備忘録です。

経緯

$ psql postgres

を実行したところ、下記のエラーが発生。

FATAL: could not open directory "pg_notify": No such file or directory

データベースを削除して再初期化すると解決しました

brew services stop postgresql
rm -rf "$(brew --prefix)/var/postgresql@14"
initdb --locale=C -E UTF-8 "$(brew --prefix)/var/postgresql@14"
brew services start postgresql

データベース削除を伴うのであまりおすすめできないかもしれませんが、解決策の一つとして誰かの参考になればと思います。

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?