Make database upgrade instructions "nodump" in postgresql

This commit is contained in:
Pierre Labastie 2021-12-16 21:59:39 +01:00
parent 60351e5b86
commit bc9c5251ae

View File

@ -194,19 +194,19 @@ make</userinput></screen>
<para>Fist, do a temporary install which makes access to the new
binaries much easier:</para>
<screen><userinput>make DESTDIR=$(pwd)/DESTDIR install</userinput></screen>
<screen role="nodump"><userinput>make DESTDIR=$(pwd)/DESTDIR install</userinput></screen>
<para>Next, create a directory which is writable by the
<systemitem class="username">postgres</systemitem> user, as the
<systemitem class="username">root</systemitem> user:</para>
<screen><userinput role="root">install -D -o postgres $(pwd)/DESTDIR/tmp</userinput></screen>
<screen role="nodump"><userinput>install -D -o postgres $(pwd)/DESTDIR/tmp</userinput></screen>
<para>Now, stop the existing instance of <application>PostgreSQL</application>
and start the upgrade process as the
<systemitem class="username">root</systemitem> user:</para>
<screen revision="sysv"><userinput role="root">pushd $(pwd)/DESTDIR/tmp
<screen revision="sysv" role="nodump"><userinput>pushd $(pwd)/DESTDIR/tmp
/etc/rc.d/init.d/postgresql stop
su postgres -c "../usr/bin/initdb -D /srv/pgsql/newdata"
su postgres -c "../usr/bin/pg_upgrade \
@ -214,7 +214,7 @@ su postgres -c "../usr/bin/pg_upgrade \
-D /srv/pgsql/newdata -B ../usr/bin"
popd</userinput></screen>
<screen revision="systemd"><userinput role="root">pushd $(pwd)/DESTDIR/tmp
<screen revision="systemd" role="root"><userinput>pushd $(pwd)/DESTDIR/tmp
systemctl stop postgresql
su postgres -c "../usr/bin/initdb -D /srv/pgsql/newdata"
su postgres -c "../usr/bin/pg_upgrade \
@ -231,7 +231,7 @@ popd</userinput></screen>
<para>Next, remove the old database files, and rename the new data
directory as the <systemitem class="username">root</systemitem> user:</para>
<screen><userinput role="root">rm -rf /srv/pgsql/data
<screen role="nodump"><userinput>rm -rf /srv/pgsql/data
mv /srv/pgsql/newdata /srv/pgsql/data</userinput></screen>
</note>