git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0600d27) | patch
Move MAX_BACKENDS to procnumber.h
2025年2月24日 10:39:17 +0000 (05:39 -0500)
2025年2月24日 11:23:41 +0000 (06:23 -0500)
commit 6394a3a61c0deae34ad9e94505d319cebe9e09a1
Move MAX_BACKENDS to procnumber.h

MAX_BACKENDS influences many things besides postmaster. I e.g. noticed that we
don't have static assertions ensuring BUF_REFCOUNT_MASK is big enough for
MAX_BACKENDS, adding them would require including postmaster.h in
buf_internals.h which doesn't seem right.

While at that, add MAX_BACKENDS_BITS, as that's useful in various places for
static assertions (to be added in subsequent commits).

Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/wptizm4qt6yikgm2pt52xzyv6ycmqiutloyvypvmagn7xvqkce@d4xuv3mylpg4
src/backend/storage/lmgr/lwlock.c diff | blob | blame | history
src/backend/utils/adt/xid8funcs.c diff | blob | blame | history
src/backend/utils/init/postinit.c diff | blob | blame | history
src/backend/utils/misc/guc_tables.c diff | blob | blame | history
src/include/postmaster/postmaster.h diff | blob | blame | history
src/include/storage/procnumber.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /