Re: [HACKERS] max backends checking patch

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: Vadim Mikheev <vadim(at)krs(dot)ru>
Cc: t-ishii(at)sra(dot)co(dot)jp, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] max backends checking patch
Date: 1999-01-10 15:00:01
Message-ID: 199901101500.AAA03642@ext16.sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 1999-01-10 16:26:27 Re: [HACKERS] MVCC works in serialized mode!
Previous Message Vadim Mikheev 1999-01-10 14:30:24 Re: [HACKERS] max backends checking patch