From 64d368aeb93323fbf51790d306d0729cc29c5a8f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 10 Aug 2022 15:15:21 +0100 Subject: [PATCH] missing_formula: message for postgres rename. PostgreSQL is being renamed to always be a versioned formula so handle when people type `brew install postgresql`. --- Library/Homebrew/missing_formula.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index c2bfa50f6e..a3736fede8 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -89,6 +89,12 @@ module Homebrew uconv is part of the icu4c formula: brew install icu4c EOS + when "postgresql", "postgres" then <<~EOS + postgresql breaks existing databases on upgrade without human intervention. + + See a more specific version to install with: + brew formulae | grep postgresql@ + EOS end end alias generic_disallowed_reason disallowed_reason