Merge pull request #15799 from MikeMcQuaid/deprecate_postgresql_upgrade_database

Deprecate `postgresql-upgrade-database`
This commit is contained in:
Mike McQuaid 2023-08-01 17:34:29 +01:00 committed by GitHub
commit 8a74f83223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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\.
. .