postgresql/src/backend/utils/init
Michael Paquier 4800a5dfb4 Refactor InitPostgres() to use bitwise option flags
InitPostgres() has been using a set of boolean arguments to control its
behavior, and a patch under discussion was aiming at expanding it with a
third one.  In preparation for expanding this area, this commit switches
all the current boolean arguments of this routine to a single bits32
argument instead.  Two values are currently supported for the flags:
- INIT_PG_LOAD_SESSION_LIBS to load [session|local]_preload_libraries at
startup.
- INIT_PG_OVERRIDE_ALLOW_CONNS to allow connection to a database even if
it has !datallowconn.  This is used by bgworkers.

Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/ZSTn66_BXRZCeaqS@paquier.xyz
2023-10-11 12:31:49 +09:00
..
globals.c Add VACUUM/ANALYZE BUFFER_USAGE_LIMIT option 2023-04-07 11:40:31 +12:00
Makefile Perform logical replication actions as the table owner. 2023-04-04 11:25:23 -04:00
meson.build Perform logical replication actions as the table owner. 2023-04-04 11:25:23 -04:00
miscinit.c Fix privilege check for SET SESSION AUTHORIZATION. 2023-07-13 21:13:45 -07:00
postinit.c Refactor InitPostgres() to use bitwise option flags 2023-10-11 12:31:49 +09:00
usercontext.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00