- Notifications
You must be signed in to change notification settings - Fork28
Commit422012c
committed
Fix bug in COMMIT AND CHAIN command.
This commit fixes COMMIT AND CHAIN command so that it starts new transactionimmediately even if savepoints are defined within the transaction to commit.Previously COMMIT AND CHAIN command did not in that case becausecommit280a408 forgot to make CommitTransactionCommand() handlea transaction chaining when the transaction state was TBLOCK_SUBCOMMIT.Also this commit adds the regression test for COMMIT AND CHAIN commandwhen savepoints are defined.Back-patch to v12 where transaction chaining was added.Reported-by: Arthur NascimentoAuthor: Fujii MasaoReviewed-by: Arthur Nascimento, Vik FearingDiscussion:https://postgr.es/m/16867-3475744069228158@postgresql.org1 parentbf9d3a5 commit422012c
File tree
3 files changed
+58
-0
lines changed- src
- backend/access/transam
- test/regress
- expected
- sql
3 files changed
+58
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3084 | 3084 |
| |
3085 | 3085 |
| |
3086 | 3086 |
| |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
3087 | 3094 |
| |
3088 | 3095 |
| |
3089 | 3096 |
| |
|
Lines changed: 40 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
774 | 774 |
| |
775 | 775 |
| |
776 | 776 |
| |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
777 | 817 |
| |
778 | 818 |
| |
779 | 819 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
458 | 458 |
| |
459 | 459 |
| |
460 | 460 |
| |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
461 | 472 |
| |
462 | 473 |
| |
463 | 474 |
| |
|
0 commit comments
Comments
(0)