MCPcopy Create free account
hub / github.com/apache/cloudberry / BackendRun

Function BackendRun

src/backend/postmaster/postmaster.c:5083–5099  ·  view source on GitHub ↗

* BackendRun -- set up the backend's argument list and invoke PostgresMain() * * returns: * Doesn't return at all. */

Source from the content-addressed store, hash-verified

5081 * Doesn't return at all.
5082 */
5083static void
5084BackendRun(Port *port)
5085{
5086 char *av[2];
5087 const int ac = 1;
5088
5089 av[0] = "postgres";
5090 av[1] = NULL;
5091
5092 /*
5093 * Make sure we aren't in PostmasterContext anymore. (We can't delete it
5094 * just yet, though, because InitPostgres will need the HBA data.)
5095 */
5096 MemoryContextSwitchTo(TopMemoryContext);
5097
5098 PostgresMain(ac, av, port->database_name, port->user_name);
5099}
5100
5101
5102#ifdef EXEC_BACKEND

Callers 2

BackendStartupFunction · 0.85
SubPostmasterMainFunction · 0.85

Calls 2

MemoryContextSwitchToFunction · 0.85
PostgresMainFunction · 0.85

Tested by

no test coverage detected