It would require only very minor changes in the main backend code to
eliminate entirely the hard-wired upper bound MAXBACKENDS.  This would
be nice since there'd never be any need to recompile in order to
increase the soft limit MaxBackends (-N).  However I see that the
SysV-semaphore emulation code used by the QNX and Darwin ports still
makes use of MAXBACKENDS to size some arrays.  I don't especially want
to touch that code, since I am in no position to test it.  Perhaps
someone who uses QNX and/or Darwin would like to tweak the sema code
to not depend on a compile-time-constant MAXBACKENDS?

I'm not thinking about getting this done in time for 7.1, but I think
it'd be a nice cleanup for 7.2.

Bruce, a TODO item please:
  * Remove compile-time upper limit on number of backends (MAXBACKENDS)

			regards, tom lane

Fri, 26 Jan 2001 11:28:22 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Hardwired MAXBACKENDS limit could be history
> It would require only very minor changes in the main backend code to
> eliminate entirely the hard-wired upper bound MAXBACKENDS.  This would
> be nice since there'd never be any need to recompile in order to
> increase the soft limit MaxBackends (-N).  However I see that the
> SysV-semaphore emulation code used by the QNX and Darwin ports still
> makes use of MAXBACKENDS to size some arrays.  I don't especially want
> to touch that code, since I am in no position to test it.  Perhaps
> someone who uses QNX and/or Darwin would like to tweak the sema code
> to not depend on a compile-time-constant MAXBACKENDS?
> 
> I'm not thinking about getting this done in time for 7.1, but I think
> it'd be a nice cleanup for 7.2.
> 
> Bruce, a TODO item please:
>   * Remove compile-time upper limit on number of backends (MAXBACKENDS)

Added to TODO.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Fri, 26 Jan 2001 23:43:00 -0500 (EST)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: Hardwired MAXBACKENDS limit could be history