forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit94a9cb4
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 parent8e4ef32 commit94a9cb4
1 file changed
+22
-0
lines changedLines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2055 | 2055 |
| |
2056 | 2056 |
| |
2057 | 2057 |
| |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
2058 | 2080 |
| |
2059 | 2081 |
| |
2060 | 2082 |
| |
|
0 commit comments
Comments
(0)