Re: [Pgbuildfarm-members] guppie: 64MB RAM too small? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [Pgbuildfarm-members] guppie: 64MB RAM too small?
Date
Msg-id 44201054.6090402@dunslane.net
Whole thread Raw
In response to Re: [Pgbuildfarm-members] guppie: 64MB RAM too small?  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: [Pgbuildfarm-members] guppie: 64MB RAM too small?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Jim C. Nasby wrote:

>Adding -hackers.
>  
>
[removing -buildfarm :-) ]

>Ok, lets go back to my original point then: initdb should be made to
>check that you can actually open as many connections as it's trying to
>set max_connections to. If it can't, it should drop max_connections down
>(and possibly add a note to postgresql.conf indicating that it did so).
>  
>

At the time it sets max_connections there is no server to test against. 
initdb in fact never uses a standard client connection at all, and never 
starts postmaster. To do a check on max_connections you would have to 
start postmaster and then try to start that many client connections. 
That's a lot of extra lifting to put into initdb for what is arguably at 
worst a rare problem.

cheers

andrew


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: [GENERAL] A real currency type
Next
From: Tom Lane
Date:
Subject: Re: [Pgbuildfarm-members] guppie: 64MB RAM too small?