Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote PSQL DB on macOS #628

Open
andreknx opened this issue Jan 27, 2025 · 3 comments
Open

Remote PSQL DB on macOS #628

andreknx opened this issue Jan 27, 2025 · 3 comments

Comments

@andreknx
Copy link

I'm trying to connect to an remote PSQL database with xca on my MacBook (M1, macOS 15.2), but so far no success.

When I open xca and do File -> Open Remote DataBase, I can just select Open Database Connectivity (ODBC). The Documentation says I need to install Postgres.app, which I did but it did not change anything. I tried both installing xca via Homebrew and downloading from https://www.hohnstaedt.de/xca/index.php/download. I also tried getting PSQL to work with ODBC, but no success here either.

What is the recommended way to to connect to a Postgres database in xca on an Apple Silicon Mac?

@chris2511
Copy link
Owner

XCA expects /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib

$ otool -L xca-2.8.0.app/Contents/PlugIns/sqldrivers/libqsqlpsql.dylib
xca-2.8.0.app/Contents/PlugIns/sqldrivers/libqsqlpsql.dylib (architecture x86_64):
	/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib (compatibility version 5.0.0, current version 5.14.0)

xca-2.8.0.app/Contents/PlugIns/sqldrivers/libqsqlpsql.dylib (architecture arm64):
	/Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib (compatibility version 5.0.0, current version 5.14.0)

@andreknx
Copy link
Author

Thank you for the quick help. You should probably update the documentation so it states that only version 14 is working. I downloaded the latest version (17) which did not work even though it also includes libpq.5.dylib (I guess the 14 is hardcoded)

@chris2511
Copy link
Owner

Yes, the 14 is hard coded in the QT SQL driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants