mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Back-patch recent pg_upgrade fixes into 9.2.
This syncs contrib/pg_upgrade in the 9.2 branch with HEAD, except for the HEAD changes related to converting XLogRecPtr to 64-bit int. It includes back-patching these commits:666d494d19
pg_upgrade: abstract out copying of files from old cluster to new7afa8bed65
pg_upgrade: Run the created scripts in the test suiteab577e63fa
Remove analyze_new_cluster.sh on make clean, too34c02044ed
Fix thinko in comment088c065ce8
pg_upgrade: Fix exec_prog API to be less flakyf763b77193
Fix pg_upgrade to cope with non-default unix_socket_directory scenarios.
This commit is contained in:
@ -367,8 +367,10 @@ pg_upgrade.exe
|
||||
Obviously, no one should be accessing the clusters during the
|
||||
upgrade. <application>pg_upgrade</> defaults to running servers
|
||||
on port 50432 to avoid unintended client connections.
|
||||
You can use the same port numbers for both clusters because the
|
||||
old and new clusters will not be running at the same time.
|
||||
You can use the same port number for both clusters when doing an
|
||||
upgrade because the old and new clusters will not be running at the
|
||||
same time. However, when checking an old running server, the old
|
||||
and new port numbers must be different.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -517,6 +519,14 @@ psql --username postgres --file script.sql postgres
|
||||
<literal>-d /real-data-directory -o '-D /configuration-directory'</>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If doing <option>--check</> with a running old server of a pre-9.1 version,
|
||||
and the old server is using a Unix-domain socket directory that is
|
||||
different from the default built into the new <productname>PostgreSQL</>
|
||||
installation, set <envar>PGHOST</> to point to the socket location of the
|
||||
old server. (This is not relevant on Windows.)
|
||||
</para>
|
||||
|
||||
<para>
|
||||
A Log-Shipping Standby Server (<xref linkend="warm-standby">) cannot
|
||||
be upgraded because the server must allow writes. The simplest way
|
||||
|
Reference in New Issue
Block a user