* BackendRun -- set up the backend's argument list and invoke PostgresMain() * * returns: * Doesn't return at all. */
| 5081 | * Doesn't return at all. |
| 5082 | */ |
| 5083 | static void |
| 5084 | BackendRun(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 |
no test coverage detected