forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3fd36be
committed
Abort pgbench if script end is reached with an open pipeline
When a pipeline is opened with \startpipeline and not closed, pgbenchwill either error on the next transaction with a "already in pipelinemode" error or successfully end if this was the last transaction --despite not sending anything that was piped in the pipeline.Make it an error to reach end of script is reached while there's anopen pipeline.Backpatch to 14, where pgbench got support for pipelines.Author: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>Reported-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/Za4IObZkDjrO4TcS@paquier.xyz1 parentde2d393 commit3fd36be
2 files changed
+41
-2
lines changedLines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3778 | 3778 |
| |
3779 | 3779 |
| |
3780 | 3780 |
| |
3781 |
| - | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
3782 | 3785 |
| |
3783 | 3786 |
| |
3784 |
| - | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
3785 | 3796 |
| |
3786 | 3797 |
| |
3787 | 3798 |
| |
|
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
841 | 841 |
| |
842 | 842 |
| |
843 | 843 |
| |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
844 | 872 |
| |
845 | 873 |
| |
846 | 874 |
| |
|
0 commit comments
Comments
(0)