Re: MAX_BACKENDS size (comment accuracy)

From: Jacob Brazeal <jacob(dot)brazeal(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: MAX_BACKENDS size (comment accuracy)
Date: 2025-01-26 21:08:19
Message-ID: CA+COZaDcxLNGvkUN4q6HoQKD2oAPp4Qs7ExzUDJ2nXXDz9ZYKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I had a typo earlier: I should have said:

> StaticAssertDecl((MAX_BACKENDS & LW_FLAG_MASK) == 0,
> "MAX_BACKENDS and LW_FLAG_MASK overlap");

Should this check that LW_LOCK_MASK & LW_FLAG_MASK == 0? To also ensure
the LW_VAL_EXCLUSIVE bit does not overlap.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2025-01-26 22:45:55 Re: pg_createsubscriber TAP test wrapping makes command options hard to read.
Previous Message Jacob Brazeal 2025-01-26 20:57:50 Re: MAX_BACKENDS size (comment accuracy)