pgtune takes the wimpy default postgresql.conf and expands

the database server to be as powerful as the hardware it's
being deployed on.

WWW: http://pgfoundry.org/projects/pgtune/

PR:		ports/134546
Submitted by:	Matthieu BOUTHORS
This commit is contained in:
Martin Wilke 2009-05-17 10:14:08 +00:00
parent fe4e53bfa3
commit 3669ea7bcf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234073
6 changed files with 56 additions and 0 deletions

View file

@ -440,6 +440,7 @@
SUBDIR += pgpoolAdmin
SUBDIR += pgtcl
SUBDIR += pgtop
SUBDIR += pgtune
SUBDIR += pgworksheet
SUBDIR += php-adodb-ext
SUBDIR += php-sqlite3

25
databases/pgtune/Makefile Normal file
View file

@ -0,0 +1,25 @@
# New ports collection makefile for: pgtune
# Date created: 16 feb 2009
# Whom: Matthieu BOUTHORS
#
# $FreeBSD$
#
PORTNAME= pgtune
PORTVERSION= 0.9.0
CATEGORIES= databases
MASTER_SITES= http://pgfoundry.org/frs/download.php/2068/ \
http://mirror.labs.fr/pub/FreeBSD/distfiles/
MAINTAINER= matthieu@labs.fr
COMMENT= Postgresql.conf tuning tips based on hardware and load type
USE_PYTHON= yes
NO_BUILD= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pgtune ${PREFIX}/bin/pgtune
${MKDIR} ${PREFIX}/share/pgtune/settings/
${CP} ${WRKSRC}/pg_settings* ${PREFIX}/share/pgtune/settings/
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (pgtune-0.9.0.tar.gz) = 1cdff4886dcdc27687ae15ae71c8b8f3
SHA256 (pgtune-0.9.0.tar.gz) = 864960dd100bb234eacd63803befe0a35d251cc48d41abfadf321eb82335b92d
SIZE (pgtune-0.9.0.tar.gz) = 22414

View file

@ -0,0 +1,17 @@
--- pgtune-original 2009-01-26 17:11:05.000000000 +0100
+++ pgtune 2009-02-18 08:20:59.000000000 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/local/bin/python
"""
pgtune
@@ -248,7 +248,7 @@
if platform.architecture()[0]=="64bit": platformBits=64
# TODO Base this file location on where this script is at
# TODO Support handling versions other than 8.4
- settingDumpFile="pg_settings-8.4-"+str(platformBits)
+ settingDumpFile="/usr/local/share/pgtune/settings/pg_settings-8.4-"+str(platformBits)
settingColumns=["name","setting","unit","category","short_desc",
"extra_desc","context","vartype","min_val","max_val","enumvals",
"boot_val"]

View file

@ -0,0 +1,5 @@
pgtune takes the wimpy default postgresql.conf and expands
the database server to be as powerful as the hardware it's
being deployed on.
WWW: http://pgfoundry.org/projects/pgtune/

View file

@ -0,0 +1,5 @@
bin/pgtune
share/pgtune/settings/pg_settings-8.4-32
share/pgtune/settings/pg_settings-8.4-64
@dirrm share/pgtune/settings
@dirrm share/pgtune