forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit59bc0df
committed
Fix get_expr_result_type() to find field names for RECORD Consts.
This is a back-patch of commitd575347 ("Fix EXPLAIN of SEARCHBREADTH FIRST with a constant initial value") into pre-v14 branches.At the time I'd thought it was not needed in branches that lack theSEARCH/CYCLE feature, but that was just a failure of imagination.It's possible to demonstrate "record type has not been registered"failures in older branches too, during deparsing of views that containreferences to fields of composite constants.Back-patch only the code changes, as the test cases added byd575347all require SEARCH/CYCLE syntax. A suitable test case will be addedin the upcoming fix for bug #18077.Discussion:https://postgr.es/m/17644-3bd1f3036d6d7a16@postgresql.orgDiscussion:https://postgr.es/m/3607145.1694803130@sss.pgh.pa.us1 parentf18efc6 commit59bc0df
2 files changed
+36
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7058 | 7058 |
| |
7059 | 7059 |
| |
7060 | 7060 |
| |
7061 |
| - | |
| 7061 | + | |
| 7062 | + | |
7062 | 7063 |
| |
7063 | 7064 |
| |
7064 | 7065 |
| |
|
Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
271 | 305 |
| |
272 | 306 |
| |
273 | 307 |
| |
|
0 commit comments
Comments
(0)