- Notifications
You must be signed in to change notification settings - Fork28
Commit0041202
committed
Disallow DROP TABLE/DROP INDEX inside a transaction block.
We can't support these properly, since once the relation's physical filesare unlinked, there's no way to roll back the transaction. I supposewe could postpone the unlink till transaction commit, but then what ofBEGIN; DROP TABLE foo; CREATE TABLE foo; ?The code does allow dropping a table/index created in the currenttransaction block, however, since the post-abort state would be thatthe table doesn't exist anyway.1 parent6645a73 commit0041202
2 files changed
+33
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
1232 | 1233 | | |
1233 | 1234 | | |
1234 | 1235 | | |
1235 | | - | |
| 1236 | + | |
1236 | 1237 | | |
1237 | 1238 | | |
1238 | 1239 | | |
| |||
1253 | 1254 | | |
1254 | 1255 | | |
1255 | 1256 | | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1256 | 1268 | | |
1257 | 1269 | | |
1258 | 1270 | | |
| |||
1307 | 1319 | | |
1308 | 1320 | | |
1309 | 1321 | | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | 1322 | | |
1318 | 1323 | | |
1319 | 1324 | | |
1320 | | - | |
| 1325 | + | |
1321 | 1326 | | |
1322 | 1327 | | |
1323 | 1328 | | |
| |||
1329 | 1334 | | |
1330 | 1335 | | |
1331 | 1336 | | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1332 | 1341 | | |
1333 | 1342 | | |
1334 | 1343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
1105 | 1106 | | |
1106 | 1107 | | |
1107 | 1108 | | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
1108 | 1120 | | |
1109 | 1121 | | |
1110 | 1122 | | |
| |||
1164 | 1176 | | |
1165 | 1177 | | |
1166 | 1178 | | |
1167 | | - | |
| 1179 | + | |
1168 | 1180 | | |
1169 | 1181 | | |
1170 | 1182 | | |
| |||
0 commit comments
Comments
(0)