summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasatomo Nakano <nakano@gentoo.org>2004-12-04 18:47:15 +0000
committerMasatomo Nakano <nakano@gentoo.org>2004-12-04 18:47:15 +0000
commit2ef45b73b4c5f5c68d08fa63b783fdc703598a10 (patch)
tree3c68147546a614a5020d30ddee1b9f39ec423e8e /dev-db/postgresql/files
parentVersion bump and pruning (Manifest recommit) (diff)
downloadgentoo-2-2ef45b73b4c5f5c68d08fa63b783fdc703598a10.tar.gz
gentoo-2-2ef45b73b4c5f5c68d08fa63b783fdc703598a10.tar.bz2
gentoo-2-2ef45b73b4c5f5c68d08fa63b783fdc703598a10.zip
version bump
Diffstat (limited to 'dev-db/postgresql/files')
-rw-r--r--dev-db/postgresql/files/digest-postgresql-8.0.0_rc13
-rw-r--r--dev-db/postgresql/files/pg_autovacuum.conf-8.0.0_rc114
-rw-r--r--dev-db/postgresql/files/pg_autovacuum.init-8.0.0_rc151
-rw-r--r--dev-db/postgresql/files/postgresql-8.0.0_rc1-gentoo.patch18
4 files changed, 86 insertions, 0 deletions
diff --git a/dev-db/postgresql/files/digest-postgresql-8.0.0_rc1 b/dev-db/postgresql/files/digest-postgresql-8.0.0_rc1
new file mode 100644
index 000000000000..285111037cd8
--- /dev/null
+++ b/dev-db/postgresql/files/digest-postgresql-8.0.0_rc1
@@ -0,0 +1,3 @@
+MD5 ee407448d31ceab05ab826504ec1a9a3 postgresql-base-8.0.0rc1.tar.bz2 7625320
+MD5 3b528b1358cd11f2680b3e42e364176e postgresql-opt-8.0.0rc1.tar.bz2 133263
+MD5 4475878d380d2b420d74bc13233c7eff postgresql-docs-8.0.0rc1.tar.bz2 2159088
diff --git a/dev-db/postgresql/files/pg_autovacuum.conf-8.0.0_rc1 b/dev-db/postgresql/files/pg_autovacuum.conf-8.0.0_rc1
new file mode 100644
index 000000000000..f342ebfd2a47
--- /dev/null
+++ b/dev-db/postgresql/files/pg_autovacuum.conf-8.0.0_rc1
@@ -0,0 +1,14 @@
+# The PostgreSQL user is:
+PGUSER=postgres
+
+# LOG file is:
+PG_AUTOVACUUM_LOG=/var/lib/postgresql/data/pg_autovacuum.log
+
+# See the pg_autovacuum documentation for the details of how these
+# parameters affect pg_autovacuum's aggressiveness.
+
+VACUUM_BASE=1000
+VACUUM_SCALE=2
+
+SLEEP_BASE=300
+SLEEP_SCALE=2
diff --git a/dev-db/postgresql/files/pg_autovacuum.init-8.0.0_rc1 b/dev-db/postgresql/files/pg_autovacuum.init-8.0.0_rc1
new file mode 100644
index 000000000000..ec70cca20c04
--- /dev/null
+++ b/dev-db/postgresql/files/pg_autovacuum.init-8.0.0_rc1
@@ -0,0 +1,51 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/pg_autovacuum.init-8.0.0_rc1,v 1.1 2004/12/04 18:47:15 nakano Exp $
+
+depend() {
+ need postgresql logger
+}
+
+start() {
+ ebegin "Starting pg_autovacuum"
+ echo ""
+ echo -n "Waiting max. 10 sec. for postgresql to start "
+ CONTINUE=0
+ TOO_LONG=0
+ while [ "$CONTINUE" -eq 0 ] && [ $TOO_LONG -lt 10 ]
+ do
+ psql -U $PGUSER -d template1 -c "SELECT 1" 1> /dev/null 2> /dev/null
+ if [ "$?" -eq 0 ]
+ then
+ CONTINUE=1
+ else
+ echo -n "."
+ TOO_LONG=`expr $TOO_LONG + 1`
+ sleep 1
+ fi
+ done
+ start-stop-daemon -o --chuid $PGUSER --start --quiet --exec /usr/bin/pg_autovacuum -- -D -v $VACUUM_BASE -V $VACUUM_SCALE -s $SLEEP_BASE -S $SLEEP_SCALE -L $PG_AUTOVACUUM_LOG
+
+ sleep 1
+ pidof /usr/bin/pg_autovacuum > /dev/null
+ if [ $? -eq 0 ]; then
+ eend 0
+ else
+ eerror ""
+ eerror "Please see log file: $PG_AUTOVACUUM_LOG"
+ eerror "You may need to add following lines in /var/lib/postgresql/data/postgresql.conf and restart PostgreSQL."
+ eerror " stats_start_collector = true"
+ eerror " stats_row_level = true"
+
+ eerror "Please read ___DOCDIR___/contrib/README.pg_autovacuum for details."
+ eend 1
+ fi
+}
+
+stop() {
+ ebegin "Stopping pg_autovacuum"
+ start-stop-daemon --stop --quiet --exec /usr/bin/pg_autovacuum
+ result=$?
+ eend $result
+}
diff --git a/dev-db/postgresql/files/postgresql-8.0.0_rc1-gentoo.patch b/dev-db/postgresql/files/postgresql-8.0.0_rc1-gentoo.patch
new file mode 100644
index 000000000000..28aeddf451d1
--- /dev/null
+++ b/dev-db/postgresql/files/postgresql-8.0.0_rc1-gentoo.patch
@@ -0,0 +1,18 @@
+diff -Naru postgresql-8.0.0rc1.org/src/bin/initdb/initdb.c postgresql-8.0.0rc1/src/bin/initdb/initdb.c
+--- postgresql-8.0.0rc1.org/src/bin/initdb/initdb.c 2004-11-29 03:05:03.000000000 +0000
++++ postgresql-8.0.0rc1/src/bin/initdb/initdb.c 2004-12-04 18:02:43.757485824 +0000
+@@ -2617,13 +2617,7 @@
+ get_parent_directory(bin_dir);
+
+ printf(_("\nSuccess. You can now start the database server using:\n\n"
+- " %s%s%s%spostmaster -D %s%s%s\n"
+- "or\n"
+- " %s%s%s%spg_ctl -D %s%s%s -l logfile start\n\n"),
+- QUOTE_PATH, bin_dir, QUOTE_PATH, (strlen(bin_dir) > 0) ? DIR_SEP : "",
+- QUOTE_PATH, pg_data_native, QUOTE_PATH,
+- QUOTE_PATH, bin_dir, QUOTE_PATH, (strlen(bin_dir) > 0) ? DIR_SEP : "",
+- QUOTE_PATH, pg_data_native, QUOTE_PATH);
++ "/etc/init.d/postgresql start\n\n"));
+
+ return 0;
+ }