- Notifications
You must be signed in to change notification settings - Fork28
Commit280a408
committed
Transaction chaining
Add command variants COMMIT AND CHAIN and ROLLBACK AND CHAIN, whichstart new transactions with the same transaction characteristics as thejust finished one, per SQL standard.Support for transaction chaining in PL/pgSQL is also added. Thisfunctionality is especially useful when running COMMIT in a loop inPL/pgSQL.Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>Discussion:https://www.postgresql.org/message-id/flat/28536681-324b-10dc-ade8-ab46f7645a5a@2ndquadrant.com1 parentb2db277 commit280a408
File tree
26 files changed
+601
-38
lines changed- doc/src/sgml
- ref
- src
- backend
- access/transam
- catalog
- executor
- nodes
- parser
- tcop
- bin/psql
- include
- access
- executor
- nodes
- pl/plpgsql/src
- expected
- sql
- test/regress
- expected
- sql
26 files changed
+601
-38
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3490 | 3490 |
| |
3491 | 3491 |
| |
3492 | 3492 |
| |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
3493 | 3507 |
| |
3494 | 3508 |
| |
3495 | 3509 |
| |
|
Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 |
| |
55 | 67 |
| |
56 | 68 |
| |
|
Lines changed: 19 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 |
| |
42 | 46 |
| |
43 | 47 |
| |
| |||
48 | 52 |
| |
49 | 53 |
| |
50 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
51 | 67 |
| |
52 | 68 |
| |
53 | 69 |
| |
| |||
79 | 95 |
| |
80 | 96 |
| |
81 | 97 |
| |
82 |
| - | |
83 |
| - | |
84 |
| - | |
| 98 | + | |
| 99 | + | |
85 | 100 |
| |
86 | 101 |
| |
87 | 102 |
| |
|
Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
53 | 65 |
| |
54 | 66 |
| |
55 | 67 |
| |
|
Lines changed: 19 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 |
| |
41 | 45 |
| |
42 | 46 |
| |
| |||
47 | 51 |
| |
48 | 52 |
| |
49 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
50 | 66 |
| |
51 | 67 |
| |
52 | 68 |
| |
| |||
78 | 94 |
| |
79 | 95 |
| |
80 | 96 |
| |
81 |
| - | |
82 |
| - | |
83 |
| - | |
| 97 | + | |
| 98 | + | |
84 | 99 |
| |
85 | 100 |
| |
86 | 101 |
| |
|
Lines changed: 27 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4376 | 4376 |
| |
4377 | 4377 |
| |
4378 | 4378 |
| |
| 4379 | + | |
4379 | 4380 |
| |
4380 | 4381 |
| |
4381 | 4382 |
| |
| |||
4384 | 4385 |
| |
4385 | 4386 |
| |
4386 | 4387 |
| |
| 4388 | + | |
4387 | 4389 |
| |
4388 | 4390 |
| |
4389 | 4391 |
| |
4390 | 4392 |
| |
4391 | 4393 |
| |
4392 | 4394 |
| |
| 4395 | + | |
| 4396 | + | |
| 4397 | + | |
| 4398 | + | |
4393 | 4399 |
| |
4394 | 4400 |
| |
4395 | 4401 |
| |
| |||
4406 | 4412 |
| |
4407 | 4413 |
| |
4408 | 4414 |
| |
4409 |
| - | |
| 4415 | + | |
| 4416 | + | |
| 4417 | + | |
| 4418 | + | |
| 4419 | + | |
| 4420 | + | |
| 4421 | + | |
| 4422 | + | |
4410 | 4423 |
| |
4411 | 4424 |
| |
4412 | 4425 |
| |
| |||
4416 | 4429 |
| |
4417 | 4430 |
| |
4418 | 4431 |
| |
| 4432 | + | |
4419 | 4433 |
| |
4420 | 4434 |
| |
4421 | 4435 |
| |
| |||
4424 | 4438 |
| |
4425 | 4439 |
| |
4426 | 4440 |
| |
| 4441 | + | |
4427 | 4442 |
| |
4428 | 4443 |
| |
4429 | 4444 |
| |
4430 | 4445 |
| |
4431 | 4446 |
| |
4432 | 4447 |
| |
| 4448 | + | |
| 4449 | + | |
| 4450 | + | |
| 4451 | + | |
4433 | 4452 |
| |
4434 | 4453 |
| |
4435 | 4454 |
| |
| |||
4444 | 4463 |
| |
4445 | 4464 |
| |
4446 | 4465 |
| |
| 4466 | + | |
| 4467 | + | |
| 4468 | + | |
| 4469 | + | |
| 4470 | + | |
| 4471 | + | |
4447 | 4472 |
| |
4448 | 4473 |
| |
4449 |
| - | |
| 4474 | + | |
4450 | 4475 |
| |
4451 | 4476 |
| |
4452 | 4477 |
| |
|
0 commit comments
Comments
(0)