forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb8a1d03
committed
Fix partial aggregation for variance(int4) and related aggregates.
A typo in numeric_poly_combine caused bogus results for queries usingit, but of course would only manifest if parallel aggregation isperformed. Reported by Rajkumar Raghuwanshi.David Rowley did the diagnosis and the fix; I editorialized ratherheavily on his regression test additions.Back-patch to v10 where the breakage was introduced (by9cca11c).Discussion:https://postgr.es/m/CAKcux6nU4E2x8nkSBpLOT2DPvQ5LviJ3SGyAN6Sz7qDH4G4+Pw@mail.gmail.com1 parenta4c95b0 commitb8a1d03
File tree
3 files changed
+47
-2
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+47
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4054 | 4054 |
| |
4055 | 4055 |
| |
4056 | 4056 |
| |
4057 |
| - | |
4058 |
| - | |
| 4057 | + | |
| 4058 | + | |
4059 | 4059 |
| |
4060 | 4060 |
| |
4061 | 4061 |
| |
|
Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2054 | 2054 |
| |
2055 | 2055 |
| |
2056 | 2056 |
| |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + |
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
900 | 900 |
| |
901 | 901 |
| |
902 | 902 |
| |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + |
0 commit comments
Comments
(0)