Skip site navigation (1) Skip section navigation (2)

Re: PG 9.0 - Default postgresql.conf?

From: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>
To: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: PG 9.0 - Default postgresql.conf?
Date: 2011-04-26 17:11:00
Message-ID: BANLkTi=q9aoJPny30fDTbevLshrLTRQxUA@mail.gmail.com (view raw)
Hi,

Is there any place I can download the default postgresql.conf that
comes with 9.0?

Thanks!

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: PG 9.0 - Default postgresql.conf?
Date: 2011-04-26 17:18:43
Message-ID: BANLkTikrbBX9KGngcpcczVhOPUhOsh2euw@mail.gmail.com (view raw)
On Tue, Apr 26, 2011 at 19:11, Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com> wrote:
> Hi,
>
> Is there any place I can download the default postgresql.conf that
> comes with 9.0?

http://git.postgresql.org/gitweb?p=postgresql.git;a=blob_plain;f=src/backend/utils/misc/postgresql.conf.sample;h=a3880da7dac5d8ff55dc8f5f7a3f1fc8052627b0;hb=REL9_0_STABLE

(note that initdb will make a few changes to it depending on your system)

If you have installed PostgreSQL, you should also be able to locate a
postgresql.conf.sample file on your local system. Exactly were it is
depends on how you intalled PostgreSQL.

-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

From: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: PG 9.0 - Default postgresql.conf?
Date: 2011-04-26 17:53:53
Message-ID: BANLkTikAgqrTA=27A1ty3bOyFT0AxHzDGg@mail.gmail.com (view raw)
On Wed, Apr 27, 2011 at 1:18 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> On Tue, Apr 26, 2011 at 19:11, Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com> wrote:
>> Hi,
>>
>> Is there any place I can download the default postgresql.conf that
>> comes with 9.0?
>
> http://git.postgresql.org/gitweb?p=postgresql.git;a=blob_plain;f=src/backend/utils/misc/postgresql.conf.sample;h=a3880da7dac5d8ff55dc8f5f7a3f1fc8052627b0;hb=REL9_0_STABLE
>
> (note that initdb will make a few changes to it depending on your system)
>
> If you have installed PostgreSQL, you should also be able to locate a
> postgresql.conf.sample file on your local system. Exactly were it is
> depends on how you intalled PostgreSQL.



Thanks Magnus. My PGSQL was installed on Linux using the Yum
repositories. There's no file called *.conf.sample.

What changes does initdb make -- can I make them by myself?

From: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: PG 9.0 - Default postgresql.conf?
Date: 2011-04-26 17:59:10
Message-ID: BANLkTikUbL2Ja_V-Jc4jRjge6j756_tvcw@mail.gmail.com (view raw)
On Wed, Apr 27, 2011 at 1:53 AM, Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com> wrote:
> On Wed, Apr 27, 2011 at 1:18 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> On Tue, Apr 26, 2011 at 19:11, Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com> wrote:
>>> Hi,
>>>
>>> Is there any place I can download the default postgresql.conf that
>>> comes with 9.0?
>>
>> http://git.postgresql.org/gitweb?p=postgresql.git;a=blob_plain;f=src/backend/utils/misc/postgresql.conf.sample;h=a3880da7dac5d8ff55dc8f5f7a3f1fc8052627b0;hb=REL9_0_STABLE
>>
>> (note that initdb will make a few changes to it depending on your system)
>>
>> If you have installed PostgreSQL, you should also be able to locate a
>> postgresql.conf.sample file on your local system. Exactly were it is
>> depends on how you intalled PostgreSQL.
>
>
>
> Thanks Magnus. My PGSQL was installed on Linux using the Yum
> repositories. There's no file called *.conf.sample.
>
> What changes does initdb make -- can I make them by myself?
>



Btw, the default file is FAILING. The server does not restart.

How can I check what the problem is? I don't see any errors at least
on the command line.All I see is:


> service postgresql restart
Stopping postgresql service:                               [  OK  ]
Starting postgresql service:                               [FAILED]


Thanks!

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PG 9.0 - Default postgresql.conf?
Date: 2011-04-26 18:17:41
Message-ID: 20110426181741.GH3430@shinkuro.com (view raw)
On Wed, Apr 27, 2011 at 01:59:10AM +0800, Phoenix Kiula wrote:
 How can I check what the problem is? I don't see any errors at least
> on the command line.All I see is:
> 
> 
> > service postgresql restart
> Stopping postgresql service:                               [  OK  ]
> Starting postgresql service:                               [FAILED]

You probably want to look in the logs.  Under /var/log there should be
something -- if nowhere else, then in syslog.

A

-- 
Andrew Sullivan
ajs(at)crankycanuck(dot)ca

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PG 9.0 - Default postgresql.conf?
Date: 2011-04-26 18:26:54
Message-ID: 4DB70E6E.6000904@hogranch.com (view raw)
On 04/26/11 10:59 AM, Phoenix Kiula wrote:
> How can I check what the problem is? I don't see any errors at least
> on the command line.All I see is:
>
>
>> >  service postgresql restart
> Stopping postgresql service:                               [  OK  ]
> Starting postgresql service:                               [FAILED]


look in the server logfiles...   depending on your distribution, the 
system service startup script could be generating them various ways, 
I've seen $PGDATA/server.log and $PGDATA/pg_log/*.log commonly.



From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: PG 9.0 - Default postgresql.conf?
Date: 2011-04-27 18:56:55
Message-ID: 4DB866F7.8010907@2ndquadrant.com (view raw)
Phoenix Kiula wrote:
>
>> What changes does initdb make -- can I make them by myself?
>>     

The main thing is that it adjusts shared_buffers down until the server 
will start without exceeding the OS limits.  It also sets some locale 
parameters within the database.

> Btw, the default file is FAILING. The server does not restart.
>
> How can I check what the problem is? I don't see any errors at least
> on the command line.All I see is:
>   

The errors are probably in /var/lib/pgsql/9.0/pgstartup.log

Most of the time the problem is either:

a) shared_buffers and the other memory parameters are set too high for 
the OS settings.
b) There is already an instance running, or some file left behind from 
an earlier instance, that is blocking startup of the new server.
c) A file is missing, corrupted, or has the wrong permissions

All of the common cases identify themselves clearly in the log file.

-- 
Greg Smith   2ndQuadrant US    greg(at)2ndQuadrant(dot)com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books



Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group