Deprecate postgresql-upgrade-database

This is an out-of-band deprecation but this command is broken and we're
not going to fix it so it's not really worth a deprecation cycle.

See https://github.com/orgs/Homebrew/discussions/4685
This commit is contained in:
Mike McQuaid 2023-08-01 12:00:30 +01:00
parent 54a3907aac
commit 04e07dc0db
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
3 changed files with 5 additions and 7 deletions

View File

@ -15,6 +15,8 @@ module Homebrew
EOS EOS
named_args :none named_args :none
hide_from_man_page!
end end
end end
@ -22,6 +24,9 @@ module Homebrew
def postgresql_upgrade_database def postgresql_upgrade_database
postgresql_upgrade_database_args.parse postgresql_upgrade_database_args.parse
odeprecated "brew postgresql_upgrade_database",
"using new, versioned e.g. `var/postgres@14` datadir and `pg_upgrade`"
name = "postgresql" name = "postgresql"
pg = Formula[name] pg = Formula[name]
bin = pg.bin bin = pg.bin

View File

@ -529,10 +529,6 @@ information is displayed in interactive shells, and suppressed otherwise.
Pin the specified *`formula`*, preventing them from being upgraded when Pin the specified *`formula`*, preventing them from being upgraded when
issuing the `brew upgrade` *`formula`* command. See also `unpin`. issuing the `brew upgrade` *`formula`* command. See also `unpin`.
### `postgresql-upgrade-database`
Upgrades the database for the `postgresql` formula.
### `postinstall`, `post_install` *`installed_formula`* [...] ### `postinstall`, `post_install` *`installed_formula`* [...]
Rerun the post-install steps for *`formula`*. Rerun the post-install steps for *`formula`*.

View File

@ -743,9 +743,6 @@ Also include outdated casks including those with \fBauto_updates true\fR\.
.SS "\fBpin\fR \fIinstalled_formula\fR [\.\.\.]" .SS "\fBpin\fR \fIinstalled_formula\fR [\.\.\.]"
Pin the specified \fIformula\fR, preventing them from being upgraded when issuing the \fBbrew upgrade\fR \fIformula\fR command\. See also \fBunpin\fR\. Pin the specified \fIformula\fR, preventing them from being upgraded when issuing the \fBbrew upgrade\fR \fIformula\fR command\. See also \fBunpin\fR\.
. .
.SS "\fBpostgresql\-upgrade\-database\fR"
Upgrades the database for the \fBpostgresql\fR formula\.
.
.SS "\fBpostinstall\fR, \fBpost_install\fR \fIinstalled_formula\fR [\.\.\.]" .SS "\fBpostinstall\fR, \fBpost_install\fR \fIinstalled_formula\fR [\.\.\.]"
Rerun the post\-install steps for \fIformula\fR\. Rerun the post\-install steps for \fIformula\fR\.
. .