Allow PostgresApp to manage servers w/Homebrew binaries#795
Allow PostgresApp to manage servers w/Homebrew binaries#795robertjpayne wants to merge 1 commit intoPostgresApp:masterfrom
Conversation
|
This looks like a useful addition, and something we have talked about in the past. At a first glance, I wonder how Homebrew deals with version updates? Does this solution keep working after a brew update? |
|
@jakob that's a good point I'm not 100% sure. Thinking about this more since I submitted the PR. It really might be easier just to allow people to add their own "Postgres" installations in Preferences and then make those available in the dropdown? Make it less dependent on a 3rd party thing. Could even be super simple by putting a "Custom" option in the dropdown and when selected it opens up a file browser to select the binaries directory. |
|
Please note that there has already been other attempts in that direction. One can still be found in branch |
|
@tbussmann thats fair. I understand supporting and maintaining such a feature can add overhead and turn into issues to track/triage etc… From my perspective this is a power user feature and as such it may be easiest to add/support the ability just to specify custom "versions" in preferences and then those versions become available in the dropdown menu. There would need to be work done incase the configuration of said path is invalid (missing binaries) or becomes invalid (deleted etc…) |
I think this is something we could easily do which would not confuse inexperienced users. |
|
@jakob only tricky part is the way the UI auto-generates a var path using the known numerical version. If someone put in a custom version there would need to be a deterministic way to generate the var path? |
We could just use var-custom and let the user pick something else. Or we could check |
|
Closing this in favor of #797 as per our discussions here around an implementation. |


PostgresApp is a fantastic way to manage Postgres on macOS however only being allowed to use the built-in binaries can be limiting:
For us the magic of PostgresApp is how it manages the data directory, starting and stopping and permissions. We'd actually prefer to install postgres elsewhere for extension support.
This PR is somewhat rudimentary but scans the
/opt/homebrew/Cellarfolder for installed versions of Postgres and allows creating servers off of that.Perhaps this is too "magic" and it would be best if PostgresApp allowed adding custom binary paths when creating a server instead?