Re: shrinking the postgresql.conf

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Mark Woodward <pgsql(at)mohawksoft(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: shrinking the postgresql.conf
Date: 2005-08-08 21:06:16
Message-ID: 42F7C948.4060003@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Woodward wrote:
>>>Well, if you want PostgreSQL to act a specific way, then you are going
>>>to
>>>have to set up the defaults somehow, right?
>>
>>Of course, which is why we could use a global table for most of it.
>
>
> What if you wish to start the same database cluster with different settings?

Then change the setting and restart?

>>>Which is cleaner? Using a configuration file which is going to be there
>>>anyway, or trying to rig-up some sort of autostart.sql mechanism to put
>>>PostgreSQL into its desired state?
>>
>>Initdb could easily create this as part of the catalog/cluster.
>
>
> Assuming you know the tuning parameters at creation time, hint: you don't.

Which isn't any different than now. You don't have a postgresql.conf
until you initdb, well you do but most people don't know about it.

>>You can do that easily if you have multiple catalogs which is what we do
>>when we want that.
>
>
> I *really* dislike this sort of strategy.

It works great for us :) but each person has their own needs.

>
>>>I also want an include directve that allows production or debugging
>>>settings to be easily used.
>>>
>>
>>Such as?
>
>
> Printing out statement execution, timing, etc. obviously.

Well this can be done easily as having a debug conf and a prod conf.
Copy one over the other and HUP when required....

>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster

--
Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240
PostgreSQL Replication, Consulting, Custom Programming, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-08-08 21:18:53 Re: PL/pgSQL: SELECT INTO EXACT
Previous Message Tom Lane 2005-08-08 21:03:28 Re: Simplifying wal_sync_method