A platform for community discussion. Free, open, simple.
DEV: Adds a check for the Arch AUR legacy postgresql packages bin path to temporary_db script (#40373)
Chris Alberti9c5d049d1dea
diff --git a/lib/temporary_db.rb b/lib/temporary_db.rbindex 069bae96b46..450264a6f9d 100644--- a/lib/temporary_db.rb+++ b/lib/temporary_db.rb@@ -58,6 +58,12 @@ class TemporaryDbreturn @pg_bin_path = bin_path if File.exist?("#{bin_path}/pg_ctl")end+ # Arch AUR packages: /opt/postgresql{version}/bin+ @versions.reverse_each do |v|+ bin_path = "/opt/postgresql#{v}/bin"+ return @pg_bin_path = bin_path if File.exist?("#{bin_path}/pg_ctl")+ end+# Unversioned fallbacks — skipped when the caller pinned a version range.if @versions == VERSIONSbin_path = "/Applications/Postgres.app/Contents/Versions/latest/bin"