forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2c7b5da
committed
Include TableFunc references when computing expression dependencies.
The TableFunc node (i.e., XMLTABLE) includes type and collation OIDsthat might not be referenced anywhere else in the expression tree,so they need to be accounted for when extracting dependencies.Fortunately, the practical effects of this are limited, since(a) it's somewhat unlikely that people would be extractingcolumns of non-builtin types from an XML document, and (b)in many scenarios, the query would contain other referencesto such types, or functions depending on them. However, it'snot hard to construct examples wherein the existing code letsone drop a type used in XMLTABLE and thereby break a view.This is evidently an original oversight in the XMLTABLE patch,so back-patch to v10 where that came in.Discussion:https://postgr.es/m/18427.1573508501@sss.pgh.pa.us1 parent29aeda6 commit2c7b5da
1 file changed
+22
-0
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2256 | 2256 |
| |
2257 | 2257 |
| |
2258 | 2258 |
| |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
2259 | 2281 |
| |
2260 | 2282 |
| |
2261 | 2283 |
| |
|
0 commit comments
Comments
(0)