forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9e0247a
committed
In CREATE AGGREGATE, allow the transition datatype to be "internal", but only
if the user is superuser. This makes available to extension modules the samesort of trick being practiced by array_agg(). The reason for the superuserrestriction is that you could crash the system by connecting up anincompatible pair of internal-using functions as an aggregate. It shouldn'tinterfere with any legitimate use, since you'd have to be superuser to createthe internal-using transition and final functions anyway.1 parentfbaa172 commit9e0247a
2 files changed
+33
-11
lines changedLines changed: 18 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| 64 | + | |
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
| |||
78 | 79 |
| |
79 | 80 |
| |
80 | 81 |
| |
81 |
| - | |
| 82 | + | |
82 | 83 |
| |
| 84 | + | |
83 | 85 |
| |
84 | 86 |
| |
85 | 87 |
| |
86 |
| - | |
87 | 88 |
| |
88 |
| - | |
89 |
| - | |
| 89 | + | |
| 90 | + | |
90 | 91 |
| |
91 | 92 |
| |
92 | 93 |
| |
| |||
177 | 178 |
| |
178 | 179 |
| |
179 | 180 |
| |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
180 | 193 |
| |
181 | 194 |
| |
182 | 195 |
| |
|
Lines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
177 | 181 |
| |
178 | 182 |
| |
179 | 183 |
| |
180 | 184 |
| |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 |
| |
186 | 195 |
| |
187 | 196 |
| |
|
0 commit comments
Comments
(0)