PostgreSQL Source Code
git master
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
linux.h
Go to the documentation of this file.
1
/* src/include/port/linux.h */
2
3
/*
4
* As of July 2007, all known versions of the Linux kernel will sometimes
5
* return EIDRM for a shmctl() operation when EINVAL is correct (it happens
6
* when the low-order 15 bits of the supplied shm ID match the slot number
7
* assigned to a newer shmem segment). We deal with this by assuming that
8
* EIDRM means EINVAL in PGSharedMemoryIsInUse(). This is reasonably safe
9
* since in fact Linux has no excuse for ever returning EIDRM; it doesn't
10
* track removed segments in a way that would allow distinguishing them from
11
* private ones. But someday that code might get upgraded, and we'd have
12
* to have a kernel version test here.
13
*/
14
#define HAVE_LINUX_EIDRM_BUG
15
16
/*
17
* Set the default wal_sync_method to fdatasync. With recent Linux versions,
18
* xlogdefs.h's normal rules will prefer open_datasync, which (a) doesn't
19
* perform better and (b) causes outright failures on ext4 data=journal
20
* filesystems, because those don't support O_DIRECT.
21
*/
22
#define PLATFORM_DEFAULT_WAL_SYNC_METHOD WAL_SYNC_METHOD_FDATASYNC
src
include
port
linux.h
Generated on Tue Dec 3 2024 00:13:25 for PostgreSQL Source Code by
1.9.1