forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita0899c0
committed
Doc: minor improvements for plpgsql "Transaction Management" section.
Point out that savepoint commands cannot be issued in PL/pgSQL,and suggest that exception blocks can usually be used instead.Add a caveat to the discussion of cursor loops vs. transactions,pointing out that any locks taken by the cursor query will be lostat COMMIT. This is implicit in what's already said, but the existingtext leaves the distinct impression that the auto-hold behavior istransparent, which it's not really.Per a couple of recent complaints (one unsigned, and one in bug #18531from Dzmitry Jachnik). Back-patch to v17, just so this makes it intocurrent docs in less than a year-and-a-half.Discussion:https://postgr.es/m/172076354433.736586.14347210271966220018@wrigleys.postgresql.orgDiscussion:https://postgr.es/m/18531-c6dddd33b8555fd2@postgresql.org1 parent8583b1f commita0899c0
1 file changed
+15
-5
lines changedLines changed: 15 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3745 | 3745 |
| |
3746 | 3746 |
| |
3747 | 3747 |
| |
| 3748 | + | |
| 3749 | + | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
| 3758 | + | |
3748 | 3759 |
| |
3749 | 3760 |
| |
3750 | 3761 |
| |
| |||
3770 | 3781 |
| |
3771 | 3782 |
| |
3772 | 3783 |
| |
3773 |
| - | |
| 3784 | + | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
3774 | 3788 |
| |
3775 | 3789 |
| |
3776 | 3790 |
| |
3777 | 3791 |
| |
3778 | 3792 |
| |
3779 | 3793 |
| |
3780 | 3794 |
| |
3781 |
| - | |
3782 |
| - | |
3783 |
| - | |
3784 |
| - | |
3785 | 3795 |
| |
3786 | 3796 |
| |
3787 | 3797 |
| |
|
0 commit comments
Comments
(0)