Re: [HACKERS] max backends checking patch - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: [HACKERS] max backends checking patch
Date
Msg-id 199901101500.AAA03642@ext16.sra.co.jp
Whole thread Raw
In response to Re: [HACKERS] max backends checking patch  (Vadim Mikheev <vadim@krs.ru>)
Responses Re: [HACKERS] max backends checking patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Couldn't postmaster just keep # of backends running
> in some variable, instead of examining BackendList ?

Yes, you could do that way. I just want to keep things simple. There
are three places in postmaster.c where element is deleted from the
BackendList. So you need to insert a code to count down the variable
into those three places. Seems a seed of "maintenance problem" in the
future IMHO:-)

Having a counter inside the dllist module is another idea. If there
were many codes in the backend that counting elemnts in the dllist,
this would be worth to think about. I'm not sure, though.
---
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] max backends checking patch
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] MVCC works in serialized mode!