Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit34fa6c6

Browse files
committed
From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] Patch for INSTAL file.The following patch does the following: - In step 6, recommend doing a database backup if you are upgrading from any version of the release, rather than ones before a specific date. - Added step 22a on regular maintainence.
1 parent0105b79 commit34fa6c6

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

‎INSTALL

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ To upgrade to PostgreSQL v6.1 do the following:
143143
/usr/lib/libfl.a, /usr/include/FlexLexer.h and will add link
144144
/usr/bin/flex++ which points to flex.
145145

146-
6) If you are upgrading an existing system from any version before
147-
version 6.1 beta release 970525 then back up the current
148-
database. (If you don't mind the restored tables being owned by
149-
the postgres account then you may use your current pg_dumpall
150-
script instead of the new pg_dumpall script used below.) Type
151-
(with the gunzip line and the following line typed as one line):
146+
6) If you are upgrading an existing system then back up your database.
147+
The database format is liable to change every few weeks with no
148+
notice besides a quick comment in the HACKERS mailing list. It is
149+
therefore a bad idea to skip this step. Also, do not use the
150+
pg_dumpall script from v6.0 or everything will be owned by the
151+
postgres super user. Type (with the gunzip line and the following
152+
line typed as one line):
152153
cd
153154
gunzip -c postgresql-v6.1.tar.gz |
154155
tar xvf - src/bin/pg_dump/pg_dumpall
@@ -493,9 +494,26 @@ To upgrade to PostgreSQL v6.1 do the following:
493494
loading order of the various programs pointed to in directory
494495
/etc/rc3.d. (Note that this example has not been tested yet.)
495496

496-
You might also want to modify your computer so that cron will run
497-
the vacuum command nightly and do regular backups. Look at the
498-
man page for crontab for a starting point on how to do this.
497+
22a) If you haven't already done so, this would be a good time to modify
498+
your computer to do regular maintainence. The following should be
499+
done at regular intervals:
500+
501+
a) Run the SQL command vacuum. This will clean up your database.
502+
b) Back up your system. (You should probably keep the last few
503+
backups on hand.) Ideally, no one else should be using the
504+
system at the time.
505+
c) Stop and restart the postmaster. The software currently
506+
suffers from memory leaks. This means that as more commands
507+
are processed, the program will allocate, then forget about,
508+
more and more memory. Eventually your computer will run
509+
low on memory and start to swap excessively. This problem
510+
will probably be gone in the next release.
511+
512+
Ideally, the above tasks should be done by a shell script that is
513+
run nightly or weekly by cron. Look at the man page for crontab
514+
for a starting point on how to do this. (If you do it, please
515+
e-mail us a copy of your shell script. We would like to set up
516+
our own systems to do this too.)
499517

500518
23) If you are upgrading an existing system then install your old database.
501519
Type

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp