forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2efcd50
committed
Disallow calling anything but plain functions via the fastpath API.
Reject aggregates, window functions, and procedures. Aggregatesfailed anyway, though with a somewhat obscure error message.Window functions would hit an Assert or null-pointer dereference.Procedures seemed to work as long as you didn't try to dotransaction control, but (a) transaction control is sort of thepoint of a procedure, and (b) it's not entirely clear that nobugs lurk in that path. Given the lack of testing of this area,it seems safest to be conservative in what we support.Also reject proretset functions, as the fastpath protocol can'tsupport returning a set.Also remove an easily-triggered assertion that the given OIDisn't 0; the subsequent lookups can handle that case themselves.Per report from Theodor-Arsenij Larionov-Trichkin.Back-patch to all supported branches. (The procedure angleonly applies in v11+, of course.)Discussion:https://postgr.es/m/2039442.1615317309@sss.pgh.pa.us1 parentee4ba01 commit2efcd50
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
124 |
| - | |
125 | 124 |
| |
126 | 125 |
| |
127 | 126 |
| |
| |||
135 | 134 |
| |
136 | 135 |
| |
137 | 136 |
| |
138 |
| - | |
139 |
| - | |
140 | 137 |
| |
141 | 138 |
| |
142 | 139 |
| |
143 | 140 |
| |
144 | 141 |
| |
145 | 142 |
| |
146 | 143 |
| |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
147 | 151 |
| |
148 | 152 |
| |
149 | 153 |
| |
| |||
156 | 160 |
| |
157 | 161 |
| |
158 | 162 |
| |
| 163 | + | |
| 164 | + | |
159 | 165 |
| |
160 | 166 |
| |
161 | 167 |
| |
|
0 commit comments
Comments
(0)