Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pgtune(1) [debian man page]

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

POSTGRESQL-SETUP(1)					    Postgresql RPM-dist manual					       POSTGRESQL-SETUP(1)

NAME
postgresql-setup - manual page for postgresql-setup 9.2.7 SYNOPSIS
postgresql-setup {initdb|upgrade} [SERVICE_NAME] DESCRIPTION
Script is aimed to help sysadmin with basic database cluster administration. The SERVICE_NAME is used for selection of proper unit configuration file; For more info and howto/when use this script please look at the docu file /usr/share/doc/postgresql-9.2.7/README.rpm-dist. The 'postgresql' string is used when no SERVICE_NAME is explicitly passed. Available operation mode: initdb Create a new PostgreSQL database cluster. This is usually the first action you perform after PostgreSQL server installation. upgrade Upgrade PostgreSQL database cluster to be usable with new server. Use this if you upgraded your PostgreSQL server to newer major version (currently from 8.4 to 9.2). ENVIRONMENT
PGSETUP_INITDB_OPTIONS Options carried by this variable are passed to subsequent call of `initdb` binary (see man initdb(1)). This variable is used also during 'upgrade' mode because the new cluster is actually re-initialized from the old one. PGSETUP_PGUPGRADE_OPTIONS Options in this variable are passed next to the subsequent call of `pg_upgrade`. For more info about possible options please look at man pg_upgrade(1). PGSETUP_DEBUG Set to '1' if you want to see debugging output. postgresql-setup 9.2.7 June 2014 POSTGRESQL-SETUP(1)
Man Page

10 More Discussions You Might Find Interesting

1. Red Hat

postgresql issues - system running really slow

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)
Discussion started by: clive306
3 Replies

2. SuSE

SLES10 - cronjob issue?

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)
Discussion started by: trey85stang
1 Replies

3. Programming

issue with fastcgi program

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)
Discussion started by: JCR
0 Replies

4. Ubuntu

istalling postgresql driver on ubuntu

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)
Discussion started by: Reham$
4 Replies

5. Programming

Need help on Shell script for database maintainace..

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)
Discussion started by: ashokkumar.p
3 Replies

6. Shell Programming and Scripting

Delete table from postgresql using shell script

Hi, I need help to Delete table from postgresql using shell script. Anyone know about it? Thanks Regards, Sajjad (1 Reply)
Discussion started by: sajjad
1 Replies

7. UNIX for Dummies Questions & Answers

Mysql my.cnf settings help required

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)
Discussion started by: egully
0 Replies

8. Programming

kill - postgresql

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)
Discussion started by: majid.merkava
1 Replies

9. Red Hat

KusuDB: Operational Error occurred when connecting to the DB

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)
Discussion started by: ahsanpmd
1 Replies

10. UNIX for Dummies Questions & Answers

[Solved] Slight variation from the desired results

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)
Discussion started by: nnani
3 Replies