mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
In pg_upgrade, add -o/-O options to pass parameters to the servers, and
document its use for config-only directory installs.
This commit is contained in:
@ -114,6 +114,20 @@
|
||||
<listitem><para>log session activity to file</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-o</option> <replaceable class="parameter">options</replaceable></term>
|
||||
<term><option>--old-options</option> <replaceable class="parameter">options</replaceable></term>
|
||||
<listitem><para>options to be passed directly to the
|
||||
old <command>postgres</command> command</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-O</option> <replaceable class="parameter">options</replaceable></term>
|
||||
<term><option>--new-options</option> <replaceable class="parameter">options</replaceable></term>
|
||||
<listitem><para>options to be passed directly to the
|
||||
new <command>postgres</command> command</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-p</option> <replaceable>old_port_number</></term>
|
||||
<term><option>--old-port=</option><replaceable>old_portnum</></term>
|
||||
@ -559,6 +573,14 @@ psql --username postgres --file script.sql postgres
|
||||
insert dummy data, and upgrade that.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If you are upgrading a pre-<productname>PostgreSQL</> 9.2 cluster
|
||||
that uses a configuration-file-only directory, you must pass the
|
||||
real data directory location to <application>pg_upgrade</>, and
|
||||
pass the configuration directory location to the server, e.g.
|
||||
<literal>-d /real-data-directory -o '-D /configuration-directory'</>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If you want to use link mode and you don't want your old cluster
|
||||
to be modified when the new cluster is started, make a copy of the
|
||||
|
Reference in New Issue
Block a user