PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
g
h
i
k
l
m
p
r
s
t
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
c
d
f
h
i
n
o
p
r
s
t
~
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
prs2lock.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* prs2lock.h
4
* data structures for POSTGRES Rule System II (rewrite rules only)
5
*
6
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
8
*
9
* src/include/rewrite/prs2lock.h
10
*
11
*-------------------------------------------------------------------------
12
*/
13
#ifndef PRS2LOCK_H
14
#define PRS2LOCK_H
15
16
#include "
access/attnum.h
"
17
#include "
nodes/pg_list.h
"
18
19
/*
20
* RewriteRule -
21
* holds an info for a rewrite rule
22
*
23
*/
24
typedef
struct
RewriteRule
25
{
26
Oid
ruleId
;
27
CmdType
event
;
28
Node
*
qual
;
29
List
*
actions
;
30
char
enabled
;
31
bool
isInstead
;
32
}
RewriteRule
;
33
34
/*
35
* RuleLock -
36
* all rules that apply to a particular relation. Even though we only
37
* have the rewrite rule system left and these are not really "locks",
38
* the name is kept for historical reasons.
39
*/
40
typedef
struct
RuleLock
41
{
42
int
numLocks
;
43
RewriteRule
**
rules
;
44
}
RuleLock
;
45
46
#endif
/* PRS2LOCK_H */
attnum.h
CmdType
CmdType
Definition:
nodes.h:269
pg_list.h
Oid
unsigned int Oid
Definition:
postgres_ext.h:30
RuleLock
struct RuleLock RuleLock
RewriteRule
struct RewriteRule RewriteRule
List
Definition:
pg_list.h:54
Node
Definition:
nodes.h:135
RewriteRule
Definition:
prs2lock.h:25
RewriteRule::ruleId
Oid ruleId
Definition:
prs2lock.h:26
RewriteRule::event
CmdType event
Definition:
prs2lock.h:27
RewriteRule::actions
List * actions
Definition:
prs2lock.h:29
RewriteRule::isInstead
bool isInstead
Definition:
prs2lock.h:31
RewriteRule::qual
Node * qual
Definition:
prs2lock.h:28
RewriteRule::enabled
char enabled
Definition:
prs2lock.h:30
RuleLock
Definition:
prs2lock.h:41
RuleLock::rules
RewriteRule ** rules
Definition:
prs2lock.h:43
RuleLock::numLocks
int numLocks
Definition:
prs2lock.h:42
src
include
rewrite
prs2lock.h
Generated on Tue Apr 22 2025 06:13:28 for PostgreSQL Source Code by
1.9.4