PGTUNE(1) General Commands Manual PGTUNE(1)NAME
pgtune - generate an optimized postgresql.conf file
SYNOPSIS
pgtune [ options ] -i $PGDATA/postgresql.conf -o $PGDATA/postgresql.conf.pgtune
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.
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.
OPTIONS -i, --input-config
Specifies the current postgresql.conf file.
-o, --output-config
Specifies the file name for the new postgresql.conf file.
-M, --memory
Use this parameter to specify total system memory. If not specified, pgtune will attempt to detect memory size.
-T, --type
Specifies database type. Valid options are: DW, OLTP, Web, Mixed, Desktop
-c, --connections
Specifies number of maximum connections expected. If not specified, it depends on database type.
-D, --debug
Enables debugging mode.
-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.
-h, --help
Show summary of options.
-v, --version
Show version of program.
AUTHOR
pgtune was written by Gregory Smith.
This manual page was written by Rodolphe Quiedeville <rodolphe@quiedeville.org>, for the Debian project (and may be used by others).
November 2, 2009 PGTUNE(1)
Check Out this Related Man Page
PGSQL2DLF.IN(1) LogReport's Lire Documentation PGSQL2DLF.IN(1)NAME
pgsql2dlf - convert pgsql logfiles to dlf format
SYNOPSIS
pgsql2dlf
DESCRIPTION
pgsql2dlf converts a PostgreSQL query log file to DLF format. Information on PostgreSQL can be found on http://www.postgresql.org/.
Logging can be enabled in the postgresql.conf file.
The following options should be present at least for this converter to work well:
debug_level = 1
debug_print_parse = on
debug_print_query = on
The generic database dlf format is described in database.xml.
EXAMPLES
To process a log as produced by PostgreSQL:
$ pgsql2dlf < /var/log/postgresql.log
pgsql2dlf will be rarely used on its own, but is more likely called by lr_log2report:
$ lr_log2report pgsql < /var/log/postgresql.log
NOTES
The parser has been tested for log files from PostgreSQL 7.2.1.
SEE ALSO psql(1), postmaster(1), postgresql.conf(5)VERSION
$Id: pgsql2dlf.in,v 1.12 2006/07/23 13:16:33 vanbaal Exp $
COPYRIGHT
Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
AUTHOR
Wessel Dankers <wsl@logreport.org>
Lire 2.1.1 2006-07-23 PGSQL2DLF.IN(1)
Hi All,
I'm new here.
i was wondering if anyone could shed a light on the problem i am having.
I use a system for distributing broadband amongst users of for example a hotel, the system was designed by someone in the US and it is based on redhat 2.4 (i know its old) and the system uses... (3 Replies)
I installed some software (zenworks linux management) and it apparently set up a cronjob for a postgresql database command. The job runs every 4 hours and fails everytime sending root mail... the problem I have is I cant find this job anywhere. ive looked in all the usual cronjob places but... (1 Reply)
Hello,
I am strugglign with the following fastcgi C++ program with access to a postgresql database through the SOCI library. All the components work individually properlyy but the combination does not. The program compiles fine but the Apapche 2.2 error log files contains:
FastCGI: comm... (0 Replies)
Hello everybody
i am working on ubuntu 9.4 and i want to connect from erlang program to postgresql database i download the driver for postgresql from
Open Source Projects from Erlang Training and Consultng Ltd.
then i try to setup this driver using make install and it didn't work, So can... (4 Replies)
Hi All,
I have to perform some tasks for database maintainace. I am using postgresql on RHEL 4.4.
1) I have to run "vacuumedb" on the database as postgres user.
2) I have to reindex the database as postgres user.
Now i want to write shell script to do these tasks one... (3 Replies)
Dear Friends
I run my website "www.egully.com" on a dedicated server with a config of memory 8GB and 8GB RAM
the CPU load average often shoots from 2-3 to 20-30 and the site becomes extremely slow. On investigation we found a lot of temporary mysql tables are been created which is taking up lot... (0 Replies)
Hi guys.
I was was designing a simple database in postgresql. I wrote a perl function in postgresql and execute it. suddenly i saw that it is running in an infinite loop. After i stopped executing of the query, i saw that CPU is in 90%+ load. I looked at process list and there it was. postgresql... (1 Reply)
I have RHEL5.3 that is with the Platform Cluster Manger PCM installation. on master node. Unfortunately some files were deleted from the /var directory and then the postgresql service couldn't start. I have deleted, rm -rf /var/lib/pgsql/data and started the service again now the service is running... (1 Reply)
Hello,
I am writing a small one liner script to display the tables in my database.
I am working with Centos 5.5 and postgresql
the command is
"psql -c "\dt" | awk '{print$3}'"
I just want the 3rd column from the result set, but now the problem is I am getting the third column but with... (3 Replies)