debian/0000755000000000000000000000000011542646515007177 5ustar debian/README.source0000644000000000000000000000052211542642125011346 0ustar pgtune source for Debian ------------------------ * On Debian, dpatch is being used to manage patches at build time. Please install the dpatch package and read /usr/share/doc/dpatch/README.source.gz if you'd like to know how to use it. -- Rodolphe Quiédeville Mon, 03 Nov 2009 19:08:31 +0100 debian/svn-deblayout0000644000000000000000000000002711542642125011706 0ustar origDir=../../upstream debian/pgtune.install0000644000000000000000000000013211542642125012056 0ustar pgtune /usr/bin pg_settings-8.4-32 /usr/share/pgtune pg_settings-8.4-64 /usr/share/pgtune debian/patches/0000755000000000000000000000000011542644422010621 5ustar debian/patches/10_settingsdir0000644000000000000000000000160511542644422013405 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 10_debianstrings.dpatch by Rodolphe Quiédeville ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Point settings default dir to /usr/share/pgtune @DPATCH@ diff -urNad pgtune-0.9.3~/pgtune pgtune-0.9.3/pgtune --- pgtune-0.9.3~/pgtune 2009-10-29 02:16:39.000000000 +0100 +++ pgtune-0.9.3/pgtune 2009-11-03 16:03:59.000000000 +0100 @@ -414,7 +414,7 @@ parser.add_option('-D','--debug',action="store_true",dest="debug", default="False",help="Enable debugging mode") - parser.add_option('-S','--settings',dest="settings_dir",default=None, + parser.add_option('-S','--settings',dest="settings_dir",default="/usr/share/pgtune", help="Directory where settings data files are located at. Defaults to the directory where the script is being run from") options,args=parser.parse_args() debian/patches/series0000644000000000000000000000001711542644414012035 0ustar 10_settingsdir debian/pgtune.10000644000000000000000000000314011542642125010552 0ustar .TH PGTUNE 1 "November 2, 2009" .SH NAME pgtune \- generate an optimized postgresql.conf file .SH SYNOPSIS \fBpgtune\fP [ options ] \fB\-i $PGDATA/postgresql.conf \-o $PGDATA/postgresql.conf.pgtune\fP .SH DESCRIPTION pgtune takes the wimpy default postgresql.conf and expands the database server to be as powerful as the hardware it's being deployed on. .PP pgtune works by taking an existing postgresql.conf file as an input, making changes to it based on the amount of RAM in your server and suggested workload, and output a new file. .SH OPTIONS .TP .B \-i, \-\-input\-config Specifies the current postgresql.conf file. .TP .B \-o, \-\-output\-config Specifies the file name for the new postgresql.conf file. .TP .B \-M, \-\-memory Use this parameter to specify total system memory. If not specified, pgtune will attempt to detect memory size. .TP .B \-T, \-\-type Specifies database type. Valid options are: DW, OLTP, Web, Mixed, Desktop .TP .B \-c, \-\-connections Specifies number of maximum connections expected. If not specified, it depends on database type. .TP .B \-D, \-\-debug Enables debugging mode. .TP .B \-S, \-\-settings Directory where settings data files are located at. Defaults to the directory where the script is being run from. The RPM package includes a patch to use the correct location these files were installed into. .TP .B \-h, \-\-help Show summary of options. .TP .B \-v, \-\-version Show version of program. .SH AUTHOR pgtune was written by Gregory Smith. .PP This manual page was written by Rodolphe Quiédeville , for the Debian project (and may be used by others). debian/pgtune.manpages0000644000000000000000000000002011542642125012177 0ustar debian/pgtune.1 debian/docs0000644000000000000000000000001411542642125010036 0ustar README TODO debian/source/0000755000000000000000000000000011542644470010475 5ustar debian/source/format0000644000000000000000000000001411542644316011702 0ustar 3.0 (quilt) debian/pgtune.dirs0000644000000000000000000000002111542642125011346 0ustar usr/share/pgtune debian/copyright0000644000000000000000000000353211542645121011125 0ustar This work was packaged for Debian by: Rodolphe Quiédeville on Mon, 02 Nov 2009 12:01:31 +0100 It was downloaded from http://pgfoundry.org/frs/?group_id=1000416 Upstream Author: Greg Smith Copyright (c) 2009, Gregory Smith All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The Debian packaging is: Copyright (C) 2009 Rodolphe Quiédeville and is licensed under the terms of the BSD License. debian/watch0000644000000000000000000000016311542642125010221 0ustar version=3 http://pgfoundry.org/frs/?group_id=1000416 /frs/download.php/[0-9]+/pgtune-(.*)\.tar\.gz debian uupdate debian/control0000644000000000000000000000160511542645421010577 0ustar Source: pgtune Section: database Priority: extra Maintainer: Christoph Berg Build-Depends: debhelper (>= 7) Standards-Version: 3.9.1 Homepage: http://pgtune.projects.postgresql.org/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-postgresql/trunk/pgtune/ Vcs-Svn: svn://svn.debian.org/pkg-postgresql/trunk/pgtune/ Package: pgtune Architecture: all Depends: ${misc:Depends}, python (>= 2.4) Suggests: postgresql-8.4 Description: PostgreSQL config tuner pgtune works by taking an existing postgresql.conf file as an input, making changes to it based on the amount of RAM in your server and suggested workload, and output a new file. . pgtune will add a set of configuration values at the end of the output file. . pgtune will set values for variables like maintenance_work_mem, effective_cache_size, work_mem, wal_buffers, checkpoint_segments, shared_buffers or max_connections debian/rules0000755000000000000000000000003611542645760010257 0ustar #!/usr/bin/make -f %: dh $@ debian/compat0000644000000000000000000000000211542642125010366 0ustar 7 debian/changelog0000644000000000000000000000074011542646434011052 0ustar pgtune (0.9.3-2) unstable; urgency=low * New maintainer, thanks Rodolphe for the permission to take over. * Add Vcs-* headers. * Convert to 3.0 (quilt). * Insert correct COPYRIGHT into debian/copyright. * Use a "dh $@" rules file. -- Christoph Berg Thu, 24 Mar 2011 14:54:32 +0100 pgtune (0.9.3-1) unstable; urgency=low * Initial release (Closes: #553975) -- Rodolphe Quiédeville Mon, 02 Nov 2009 12:01:31 +0100