Homebrew Timescaledb installs new pg16, already have pg17

Running brew install timescaledb automatically installs a fresh postgresql@16, even though I already have version 17 installed (and only v17 installed). When I try to add the extension to a database:

ERROR: extension “timescaledb” is not available
DETAIL: Could not open extension control file “/opt/homebrew/share/postgresql@17/extension/timescaledb.control”: No such file or directory

TimescaleDB version: 2.17.2
PostgreSQL version:
Other software:
OS: macos 15.1.1
Platform:
Install method: Homebrew
Environment: Development

Thanks!

Hi @Scott_Hickey , thanks for reporting. I guess we still have hardcoded dependencies on the formulas and we update as we go.

I’m testing the edited formula and will open a PR soon I get it running.

Hi @Scott_Hickey, the shortest path for you now is:

brew unlink postgresql@16
brew install postgresql@17

Confirm it’s 17.03.

Now, use brew edit timescale/tap/timescaledb
and change the version to postgres@17 in two occurrences of postgres@16 in the file.

Then you can run brew install --build-from-source timescale/tap/timescaledb.

Check if it works for you and reply if you fall into any issue.

We’ll provide a PR to update it soon.

Hi @Scott_Hickey, I think the PR is stable now, if you want to test the PR, it would be great if we have more Mac Users confirming it’s all working: Update postgresql dependency from pg16 to pg17 by jonatas · Pull Request #50 · timescale/homebrew-tap · GitHub