+ linkend="app-initdb">,
initdb>>.
+ Again, use compatible initdb
+ flags that match the old cluster. Many
prebuilt installers do this step automatically. There is no need to
start the new cluster.
pg_upgrade will connect to the old and new servers several times,
so you might want to set authentication to trust> in
pg_hba.conf>, or if using md5> authentication,
- use a pgpass> file to avoid being prompted repeatedly
- for a password.
+ use a ~/.pgpass> file (see )
+ to avoid being prompted repeatedly for a password.
or
-NET STOP pgsql-8.3 (different service name)
+NET STOP pgsql-8.3 (
PostgreSQL> 8.3 and older used a different service name)
- Run pg_upgrade
- Always run the pg_upgrade binary in the new server, not the old one.
- pg_upgrade requires the specification of the old and new cluster's
- PGDATA and executable (/bin) directories. You can also specify separate
+ Always run the
pg_upgrade> binary in the new server, not the old one.
+
pg_upgrade> requires the specification of the old and new cluster's
+ PGDATA> and executable (/bin) directories. You can also specify separate
user and port values, and whether you want the data linked instead of
copied (the default). If you use linking, the migration will be much
faster (no data copying), but you will no longer be able to access your
SET PATH=%PATH%;C:\Program Files\PostgreSQL\9.0\bin;
- and then run pg_upgrade with quoted directories, e.g.:
+ and then run
pg_upgrade> with quoted directories, e.g.:
pg_upgrade.exe
The scripts can be run in any order and can be deleted once they have
been run.
-
+
+
In general it is unsafe to access tables referenced in rebuild scripts
until the rebuild scripts have run to completion; doing so could yield
incorrect results or poor performance. Tables not referenced in rebuild
scripts can be accessed immediately.
+
Statistics
-
+
Because optimizer statistics are not transferred by pg_upgrade, you will
be instructed to run a command to regenerate that information at the end
of the migration.
+
-
Limitations In Migrating from> PostgreSQL 8.3
+
Limitations in migrating from> PostgreSQL 8.3
Also, the default datetime storage format changed to integer after
- Postgres 8.3. pg_upgrade will check that the datetime storage format
+
PostgreSQL> 8.3. pg_upgrade will check that the datetime storage format
used by the old and new clusters match. Make sure your new cluster is
built with the configure flag
- All failure, rebuild, and reindex cases will be reported by pg_upgrade
+ All failure, rebuild, and reindex cases will be reported by
pg_upgrade>
if they affect your installation; post-migration scripts to rebuild
tables and indexes will be automatically generated.