forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita2597ef
committed
Modify sequence state storage to eliminate dangling-pointer problem
exemplified by bug #671. Moving the storage to relcache turned out tobe a bad idea because relcache might decide to discard the info. Instead,open and close the relcache entry on each sequence operation, and usea record of the current XID to discover whether we already holdAccessShareLock on the sequence.1 parentb8ffc99 commita2597ef
File tree
5 files changed
+153
-139
lines changed- src
- backend
- access/transam
- commands
- include/commands
5 files changed
+153
-139
lines changedLines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
170 | 169 |
| |
171 | 170 |
| |
172 | 171 |
| |
| |||
947 | 946 |
| |
948 | 947 |
| |
949 | 948 |
| |
950 |
| - | |
951 | 949 |
| |
952 | 950 |
| |
953 | 951 |
| |
| |||
1063 | 1061 |
| |
1064 | 1062 |
| |
1065 | 1063 |
| |
1066 |
| - | |
1067 | 1064 |
| |
1068 | 1065 |
| |
1069 | 1066 |
| |
|
Lines changed: 30 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
114 | 115 |
| |
115 | 116 |
| |
116 | 117 |
| |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
117 | 146 |
| |
118 | 147 |
| |
119 | 148 |
| |
|
0 commit comments
Comments
(0)