Libssl and libcrypto causing dyld: Library not loaded: /usr/lib/libpq.5.dylib
Turns out /usr/lib/libpq.5.dylib was absent but /usr/lib/libpq.5.4.dylib was not.
sudo ln -s /usr/lib/libpq.5.4.dylib /usr/lib/libpq.5.dylib
fixed the issue.
just use the below commands in your terminal
(use the proper postgresql version)
$ brew unlink postgresql@14
$ brew link libpq --force
https://github.com/opentable/otj-pg-embedded/issues/152#issuecomment-954348544