Tom Lane wrote:
> Carlos Moreno <moreno_pg(at)mochima(dot)com> writes:
>> ... But, wouldn't it make sense that the configure script
>> determines the amount of physical memory and perhaps even do a HD
>> speed estimate to set up defaults that are closer to a
> No. Most copies of Postgres these days are executed on machines very
> far away from where the code was built. It's a little bit safer to
> try to tune things at initdb time ... as indeed we already do.
D'oh! Yes, that makes more sense, of course.
> the fundamental problem remains that we don't know that much about
> how the installation will be used.
Notice that the second part of my suggestion covers this --- have
switches to initdb so that the user can tell it about estimates on how
will be used: estimated size of the DB, estimated percentage of
will involve writing, estimated percentage of activity that will be
percentage that will use indexes, percentage of queries that will be
Wouldn't initdb be able to do a better job at coming up with sensible
defaults if it counts on this information? Of course, all these
would have their own defaults --- the user won't necessarily know or have
an accurate estimate for each and every one of them.
> Also, there is an extremely good reason why Postgres will never be set
> up to try to take over the whole machine by default: most of the
> developers run multiple postmasters on their machines.
Wouldn't this be covered by the above suggestion?? One of the switches
for the command initdb could allow the user to specify how many instances
will be run (I assume you're talking about having different instances
on different ports for increased concurrency-related benefits?)
Does my suggestion make more sense now? Or is it still too unrealistic to
make it work properly/safely?
In response to
pgsql-performance by date
|Next:||From: Jim Nasby||Date: 2007-04-27 14:08:50|
|Subject: Re: What`s wrong with JFS configuration?|
|Previous:||From: Michael Stone||Date: 2007-04-27 12:52:45|
|Subject: Re: Usage up to 50% CPU|
pgsql-general by date
|Next:||From: Rich Shepard||Date: 2007-04-27 13:36:37|
|Subject: Preferred Installation/Data Directories|
|Previous:||From: Alvaro Herrera||Date: 2007-04-27 13:18:08|
|Subject: Re: Vacuum-full very slow|