forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commita87c0c7
committed
Allow parallel query for prepared statements with generic plans.
This was always intended to work, but due to an oversight inmax_parallel_hazard_walker, it didn't. In testing, we missed thefact that it was only working for custom plans, where the parametervalue has been substituted for the parameter itself early enoughthat everything worked. In a generic plan, the Param node survivesand must be treated as parallel-safe. SerializeParamList providesfor the transmission of parameter values to workers.Amit Kapila with help from Kuntal Ghosh. Some changes by me.Discussion:http://postgr.es/m/CAA4eK1+_BuZrmVCeua5Eqnm4Co9DAXdM5HPAOE2J19ePbR912Q@mail.gmail.com1 parent69125c8 commita87c0c7
File tree
4 files changed
+76
-21
lines changed- src
- backend/optimizer/util
- pl/plpgsql/src
- test/regress
- expected
- sql
4 files changed
+76
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | | - | |
1227 | | - | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
1228 | 1229 | | |
1229 | 1230 | | |
1230 | 1231 | | |
1231 | 1232 | | |
1232 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
1233 | 1237 | | |
1234 | 1238 | | |
1235 | 1239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6821 | 6821 | | |
6822 | 6822 | | |
6823 | 6823 | | |
6824 | | - | |
| 6824 | + | |
6825 | 6825 | | |
6826 | 6826 | | |
6827 | 6827 | | |
| |||
6836 | 6836 | | |
6837 | 6837 | | |
6838 | 6838 | | |
| 6839 | + | |
| 6840 | + | |
6839 | 6841 | | |
6840 | 6842 | | |
6841 | | - | |
| 6843 | + | |
| 6844 | + | |
| 6845 | + | |
| 6846 | + | |
| 6847 | + | |
| 6848 | + | |
6842 | 6849 | | |
6843 | | - | |
6844 | | - | |
6845 | 6850 | | |
6846 | | - | |
6847 | | - | |
| 6851 | + | |
| 6852 | + | |
| 6853 | + | |
| 6854 | + | |
| 6855 | + | |
| 6856 | + | |
| 6857 | + | |
| 6858 | + | |
| 6859 | + | |
| 6860 | + | |
| 6861 | + | |
| 6862 | + | |
| 6863 | + | |
| 6864 | + | |
| 6865 | + | |
| 6866 | + | |
| 6867 | + | |
| 6868 | + | |
| 6869 | + | |
| 6870 | + | |
| 6871 | + | |
| 6872 | + | |
| 6873 | + | |
| 6874 | + | |
| 6875 | + | |
| 6876 | + | |
| 6877 | + | |
| 6878 | + | |
| 6879 | + | |
| 6880 | + | |
6848 | 6881 | | |
6849 | 6882 | | |
6850 | | - | |
| 6883 | + | |
6851 | 6884 | | |
6852 | 6885 | | |
6853 | 6886 | | |
| |||
6856 | 6889 | | |
6857 | 6890 | | |
6858 | 6891 | | |
6859 | | - | |
6860 | | - | |
6861 | | - | |
6862 | | - | |
6863 | | - | |
6864 | | - | |
6865 | | - | |
6866 | | - | |
6867 | 6892 | | |
6868 | 6893 | | |
6869 | 6894 | | |
6870 | | - | |
| 6895 | + | |
6871 | 6896 | | |
6872 | 6897 | | |
6873 | 6898 | | |
6874 | 6899 | | |
6875 | 6900 | | |
6876 | 6901 | | |
6877 | | - | |
| 6902 | + | |
6878 | 6903 | | |
6879 | 6904 | | |
6880 | 6905 | | |
6881 | 6906 | | |
6882 | | - | |
6883 | | - | |
| 6907 | + | |
| 6908 | + | |
6884 | 6909 | | |
6885 | 6910 | | |
6886 | 6911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
104 | 124 | | |
105 | 125 | | |
106 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
0 commit comments
Comments
(0)