PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
backend_startup.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* backend_startup.h
4
* prototypes for backend_startup.c.
5
*
6
*
7
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8
* Portions Copyright (c) 1994, Regents of the University of California
9
*
10
* src/include/tcop/backend_startup.h
11
*
12
*-------------------------------------------------------------------------
13
*/
14
#ifndef BACKEND_STARTUP_H
15
#define BACKEND_STARTUP_H
16
17
/* GUCs */
18
extern
PGDLLIMPORT
bool
Trace_connection_negotiation
;
19
20
/*
21
* CAC_state is passed from postmaster to the backend process, to indicate
22
* whether the connection should be accepted, or if the process should just
23
* send an error to the client and close the connection. Note that the
24
* connection can fail for various reasons even if postmaster passed CAC_OK.
25
*/
26
typedef
enum
CAC_state
27
{
28
CAC_OK
,
29
CAC_STARTUP
,
30
CAC_SHUTDOWN
,
31
CAC_RECOVERY
,
32
CAC_NOTCONSISTENT
,
33
CAC_TOOMANY
,
34
}
CAC_state
;
35
36
/* Information passed from postmaster to backend process in 'startup_data' */
37
typedef
struct
BackendStartupData
38
{
39
CAC_state
canAcceptConnections
;
40
}
BackendStartupData
;
41
42
extern
void
BackendMain
(
char
*startup_data,
size_t
startup_data_len)
pg_attribute_noreturn
();
43
44
#endif
/* BACKEND_STARTUP_H */
BackendStartupData
struct BackendStartupData BackendStartupData
BackendMain
void BackendMain(char *startup_data, size_t startup_data_len) pg_attribute_noreturn()
Definition:
backend_startup.c:59
CAC_state
CAC_state
Definition:
backend_startup.h:27
CAC_TOOMANY
@ CAC_TOOMANY
Definition:
backend_startup.h:33
CAC_OK
@ CAC_OK
Definition:
backend_startup.h:28
CAC_RECOVERY
@ CAC_RECOVERY
Definition:
backend_startup.h:31
CAC_NOTCONSISTENT
@ CAC_NOTCONSISTENT
Definition:
backend_startup.h:32
CAC_STARTUP
@ CAC_STARTUP
Definition:
backend_startup.h:29
CAC_SHUTDOWN
@ CAC_SHUTDOWN
Definition:
backend_startup.h:30
Trace_connection_negotiation
PGDLLIMPORT bool Trace_connection_negotiation
Definition:
backend_startup.c:43
PGDLLIMPORT
#define PGDLLIMPORT
Definition:
c.h:1274
pg_attribute_noreturn
#define pg_attribute_noreturn()
Definition:
c.h:236
BackendStartupData
Definition:
backend_startup.h:38
BackendStartupData::canAcceptConnections
CAC_state canAcceptConnections
Definition:
backend_startup.h:39
src
include
tcop
backend_startup.h
Generated on Tue Jan 7 2025 06:13:24 for PostgreSQL Source Code by
1.9.4