Re: [ADMIN] exceeds max_fsm_pages

2008-03-20 Thread Uwe C. Schroeder
You increase max_fsm_pages and restart the server. On Thursday 20 March 2008, Marc Fromm wrote: > I received this message after running vacuum on a database. > > NOTICE: number of page slots needed (27296) exceeds max_fsm_pages > (2) > HINT: Consider increasing the configuration parameter "

Re: [ADMIN] create db from a template

2008-03-20 Thread Shane Ambler
Marc Fromm wrote: Is there a better way to create a database from the schema of another database, to have a copy of a database without the data? 1.) I get the schema from a database pg_dump -s -U postgres -O databasename > /tmp/template_name 2.) I create a new database. createdb -U postgres new

Re: [ADMIN] Postgres Performance

2008-03-20 Thread Steve Crawford
Aftab Alam wrote: Dear All, I am using postgres 7.0 with linux with 15 GB of database & 3 gb of RAM. Can anyone suggest what is the best setting for postgres. I am using postgres as web db. I'm going to assume/hope that you mean 8.0. Even then, you would be well advised t

[ADMIN] Postgres Performance

2008-03-20 Thread Aftab Alam
Dear All, I am using postgres 7.0 with linux with 15 GB of database & 3 gb of RAM. Can anyone suggest what is the best setting for postgres. I am using postgres as web db. Regards aftab This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION in

Re: [ADMIN] Postgres database and firewall

2008-03-20 Thread Shane Ambler
Bhella Paramjeet-PFCW67 wrote: Thank you very much Shane for your response. I have one more question, the firewall usually drops the idle connections. What can we configure on the database side to keep the idle connections alive. In the postgresql.conf file I see the parameter tcp_keepalives_idle

[ADMIN] Pg_restore failing with ERROR: out of memory

2008-03-20 Thread Aaron Brown
I¹m attempting to do something that should be a trivially simple task. I want to do a data only dump from my production data in the public schema and restore it on another machine. Both machines are running 8.2.5, both machines are virtually identical and have 16GB of RAM. I created an archive w

Re: [ADMIN] Postgres database and firewall

2008-03-20 Thread Bhella Paramjeet-PFCW67
Thank you very much Shane for your response. I have one more question, the firewall usually drops the idle connections. What can we configure on the database side to keep the idle connections alive. In the postgresql.conf file I see the parameter tcp_keepalives_idle, setting this parameter would be

[ADMIN] exceeds max_fsm_pages

2008-03-20 Thread Marc Fromm
I received this message after running vacuum on a database. NOTICE: number of page slots needed (27296) exceeds max_fsm_pages (2) HINT: Consider increasing the configuration parameter "max_fsm_pages" to a value over 27296. The documentation for 8.1 sates: This setting must be more than 16

[ADMIN] create db from a template

2008-03-20 Thread Marc Fromm
Is there a better way to create a database from the schema of another database, to have a copy of a database without the data? 1.) I get the schema from a database pg_dump -s -U postgres -O databasename > /tmp/template_name 2.) I create a new database. createdb -U postgres newdb 3.) I restore th

Re: [ADMIN] Postgres Performance

2008-03-20 Thread Vishal Arora
Based on your conf file.. you can increase shared buffers and also you can increase the max_connections. (I am not sure if your version of Postgres supports more than 32 connections. Just check that). Apart from that you can use Explain Analyze on any specific query which you think is having any

Re: [ADMIN] Reading information from crashed PGDATA

2008-03-20 Thread Alvaro Herrera
veejar escribió: > When I have only folder base or base+global, can I read tables data > from databases in such PGDATA via any tools or methods? No, you need pg_clog at the very least. pg_xlog, pg_multixact and pg_subtrans are almost equally important -- I think you could start without them but

Re: [ADMIN] lock help

2008-03-20 Thread Ray Stell
On Thu, Mar 20, 2008 at 10:42:29AM -0400, Tom Lane wrote: > Ray Stell <[EMAIL PROTECTED]> writes: > Define "wedged" --- what's the actual problem? client queries not returning. > If it is a locking issue then the pg_locks view might be useful. duh, I meant to cut and paste the lock info and sen

[ADMIN] Reading information from crashed PGDATA

2008-03-20 Thread veejar
This information I have found in PostgreSQL docs: Table 52-1. Contents of PGDATA PG_VERSION A file containing the major version number of PostgreSQL baseSubdirectory containing per-database subdirectories global Subdirectory containing cluster-wide tables, such as pg_database pg_clog Su

Re: [ADMIN] DB Structure Recovery

2008-03-20 Thread veejar
2008/3/19, Achilleas Mantzios <[EMAIL PROTECTED]>: > Στις Wednesday 19 March 2008 16:56:19 ο/η veejar έγραψε: > > > Hello! > > > > My filesystem (UFS-FreeBSD) was crashed and I have lost files from > > PGSQL DATA DIR FOLDER after fsck-utility. > > > > I have lost files from directory "pg_xlog"

Re: [ADMIN] Windows 64 bit

2008-03-20 Thread Michael Monnerie
On Mittwoch, 19. März 2008 Campbell, Lance wrote: > Would there be benefits in running PostgreSQL in a 32 bit mode on a > 64 bit version of XP?   My thought is that the OS could access more > of the memory for the caching of the files.  I come to this > understanding because on my production Linux

Re: [ADMIN] lock help

2008-03-20 Thread Tom Lane
Ray Stell <[EMAIL PROTECTED]> writes: > I have a db wedged and need help dealing with it. Define "wedged" --- what's the actual problem? If it is a locking issue then the pg_locks view might be useful. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@

[ADMIN] Looking for performance monitoring tool for PG

2008-03-20 Thread Abraham, Danny
Any ideas or refeneces? Can be either for Unix or Windows Thanks Danny Abraham BMC Software CTM&D Business Unit 972-52-4286-513 [EMAIL PROTECTED] -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-adm

[ADMIN] lock help

2008-03-20 Thread Ray Stell
I have a db wedged and need help dealing with it. How can I find out more about this, who, what, where, etc, and how to free this up: ghiza=# select * from pg_user; usename | usesysid | usecreatedb | usesuper | usecatupd | passwd | valuntil | useconfig -+--+-+---

Re: [ADMIN] Postgres Performance

2008-03-20 Thread Aftab Alam
Hi Vishal, Attached is the conf file for your reference. Regards aftab From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Arora Sent: Thursday, March 20, 2008 4:34 PM To: Aftab Alam; [EMAIL PROTECTED] Cc: pgsql-admin@postgresql.org Subject: Re:

Re: [ADMIN] Postgres Performance

2008-03-20 Thread Vishal Arora
> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: > pgsql-admin@postgresql.org> Subject: Re: [ADMIN] Postgres Performance> Date: > Thu, 20 Mar 2008 16:02:48 +0530> > Dear Hubert,> > I have mistaken written > 7.0 instead of 7.3, I am getting more than 2000 hits> daily, can u suggest > th

Re: [ADMIN] Postgres Performance

2008-03-20 Thread hubert depesz lubaczewski
On Thu, Mar 20, 2008 at 04:02:48PM +0530, Aftab Alam wrote: > I have mistaken written 7.0 instead of 7.3, I am getting more than 2000 hits > daily, can u suggest the best configuration. Mean while I am trying to > migrate it to 8.3.1 7.3 is also pretty old. as for 2000 hits daily - it's not much.

Re: [ADMIN] Postgres Performance

2008-03-20 Thread Aftab Alam
Dear Hubert, I have mistaken written 7.0 instead of 7.3, I am getting more than 2000 hits daily, can u suggest the best configuration. Mean while I am trying to migrate it to 8.3.1 Regards aftab -Original Message- From: hubert depesz lubaczewski [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: [ADMIN] Postgres Performance

2008-03-20 Thread hubert depesz lubaczewski
On Thu, Mar 20, 2008 at 03:12:43PM +0530, Aftab Alam wrote: > I am using postgres 7.0 with linux with 15 GB of database & 3 gb > of RAM. > Can anyone suggest what is the best setting for postgres. I am using postgres > as web db. the best setting would be to upgrade. 7.0 was released

[ADMIN] Postgres Performance

2008-03-20 Thread Aftab Alam
Dear All, I am using postgres 7.0 with linux with 15 GB of database & 3 gb of RAM. Can anyone suggest what is the best setting for postgres. I am using postgres as web db. Regards aftab This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION in

Re: [ADMIN] Postgres database and firewall

2008-03-20 Thread Shane Ambler
Bhella Paramjeet-PFCW67 wrote: Hi We will be setting up a production postgres database to which an application will connect through a firewall. Can any one please tell me if there is any configuration that needs to be done on the postgres database side for firewall. Is there any documentation