forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfadcc4e
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 parente7cddb5 commitfadcc4e
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 | |
---|---|---|---|
| |||
3067 | 3067 |
| |
3068 | 3068 |
| |
3069 | 3069 |
| |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
3070 | 3077 |
| |
3071 | 3078 |
| |
3072 | 3079 |
| |
|
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)