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

PostgreSQL 10 #19087

Closed
wants to merge 2 commits into from
Closed

PostgreSQL 10 #19087

wants to merge 2 commits into from

Conversation

eagleflo
Copy link
Contributor

@eagleflo eagleflo commented Oct 6, 2017

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

I copied the old formula to postgresql@9.6 and updated it based on postgresql@9.5. The bottles for PostgreSQL 9.6 can't be found after the migration to postgresql@9.6, can they be renamed?

PostgreSQL's pg_upgrade also works for migrations across major versions. Updated caveats in main formula to reflect that.

I was able to migrate my databases with:

$ brew services stop postgresql
$ cp -r /usr/local/var/postgres /usr/local/var/postgres@9.6
$ initdb -D /usr/local/var/postgres
$ pg_upgrade -b /usr/local/Cellar/postgresql/9.6.5/bin -B /usr/local/Cellar/postgresql/10.0/bin -d /usr/local/var/postgres@9.6 -D /usr/local/var/postgres
$ brew services start postgresql

After verifying that everything is OK:

$ rm -rf  /usr/local/var/postgres@9.6
$ brew cleanup

@eagleflo eagleflo force-pushed the postgresql-10 branch 4 times, most recently from 2a7f443 to a4f5304 Compare October 6, 2017 10:33
@eagleflo
Copy link
Contributor Author

eagleflo commented Oct 6, 2017

Tried using assert_predicate instead of File.exists? as suggested by audit, but the test bot didn't like it.

@eagleflo
Copy link
Contributor Author

eagleflo commented Oct 6, 2017

Duplicate of #19062.

@eagleflo eagleflo closed this Oct 6, 2017
@eagleflo eagleflo deleted the postgresql-10 branch October 6, 2017 11:24
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant