.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.6.
.TH POSTGRESQL-UPGRADE "1" "February 2024" "postgresql-upgrade 8.7" "User Commands"
.SH NAME
postgresql-upgrade \- manual page for postgresql-upgrade 8.7
.SH SYNOPSIS
.B postgresql-upgrade
[\fI\,--upgrade-from=ID\/\fR] \fI\,DATADIR\/\fR
.SH DESCRIPTION
Wrapper script for pg_upgrade.  It has pre\-configured pg_upgrade options and
environment variables.
.SH OPTIONS
.TP
\fB\-\-upgrade\-ids\fR
Print list of available IDs of upgrade scenarios to
standard output.
.TP
\fB\-\-upgrade\-from\fR=\fI\,ID\/\fR
Specify id "old" postgresql stack to upgrade
from.  List of available IDs can be listed by
\fB\-\-upgrade\-ids\fR.  Default is 'postgresql'.
.SS "Other options:"
.TP
\fB\-\-help\fR
show this help
.TP
\fB\-\-version\fR
show version of this package
.SH ENVIRONMENT
.TP
PGSETUP_INITDB_OPTIONS
Options carried by this variable are passed to
subsequent call of `initdb` binary (see man
initdb(1)).  This variable is used also during
\&'upgrade' mode because the new cluster is actually
re\-initialized from the old one.
.TP
PGSETUP_PGUPGRADE_OPTIONS
Options in this variable are passed next to the
subsequent call of `pg_upgrade`.  For more info
about possible options please look at man
pg_upgrade(1).
.PP
Built against PostgreSQL version 10.23.
