-
pg_dump has a few limitations:
-
-
-
- When a data-only dump is chosen and the option
-
-
pg_dump emits commands to disable
- triggers on user tables before inserting the data and commands
- to re-enable them after the data has been inserted. If the
- restore is stopped in the middle, the system catalogs might be
- left in the wrong state.
-
-
-
-
+
pg_dump has a limitation; when a
+ data-only dump is chosen and the option
+ is used,
pg_dump emits commands
+ to disable triggers on user tables before inserting the data
+ and commands to re-enable them after the data has been
+ inserted. If the restore is stopped in the middle, the system
+ catalogs might be left in the wrong state.
- The dump file produced by
pg_dump does
- not contain the statistics used by the optimizer to make query
- planning decisions. Therefore, it is wise to run
- ANALYZE after restoring from a dump file to
- ensure good performance.
+ The dump file produced by
pg_dump
+ does not contain the statistics used by the optimizer to make
+ query planning decisions. Therefore, it is wise to run
+ ANALYZE after restoring from a dump file
+ to ensure good performance. The dump file also does not
+ contain any ALTER DATABASE ... SET> commands;
+ these settings are dumped by ,
+ along with database users and other installation-wide settings.