|
1 | 1 |
|
2 | 2 | Frequently Asked Questions (FAQ) for PostgreSQL
|
3 | 3 |
|
4 |
| - Last updated:Tue Jun11 06:36:10 EDT 2002 |
| 4 | + Last updated:Thu Jun20 22:00:57 EDT 2002 |
5 | 5 |
|
6 | 6 | Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
7 | 7 |
|
|
53 | 53 | 3.7) What debugging features are available?
|
54 | 54 | 3.8) Why do I get "Sorry, too many clients" when trying to connect?
|
55 | 55 | 3.9) What are the pg_sorttempNNN.NN files in my database directory?
|
| 56 | + 3.10) Why do I need to do a dump and restore to upgrade PostgreSQL? |
56 | 57 |
|
57 | 58 | Operational Questions
|
58 | 59 |
|
|
596 | 597 | The temporary files should be deleted automatically, but might not if
|
597 | 598 | a backend crashes during a sort. If you have no backends running at
|
598 | 599 | the time, it is safe to delete the pg_tempNNN.NN files.
|
| 600 | + |
| 601 | + 3.10) Why do I need to do a dump and restore to upgrade PostgreSQL? |
| 602 | + |
| 603 | + The PostgreSQL team tries very heard to maintain compatability across |
| 604 | + minor releases. So upgrading from 7.2 to 7.2.1 does not require a dump |
| 605 | + a restore. However, new features are continuously being adding and |
| 606 | + sometimes this requires new fields to be added to system tables. |
| 607 | + |
| 608 | + These changes may be across many tables and so maintaining backward |
| 609 | + compatability would be quite difficult. Thus, restoring from a dump is |
| 610 | + required to make everything work. |
| 611 | + |
| 612 | + Note that the actual on-disk file format does not change very often, a |
| 613 | + feature the pg_upgrade script uses quite successfully. There the dump |
| 614 | + is used create the necessary information in the system tables. The |
| 615 | + data files are then just copied across. This method is not as |
| 616 | + guarenteed as the dump/restore method but when it works it can make |
| 617 | + upgrades very efficient. |
599 | 618 | _________________________________________________________________
|
600 | 619 |
|
601 | 620 | Operational Questions
|
|