Allow functions returning void or cstring to appear in FROM clause,
Tom Lane <tgl@sss.pgh.pa.us>
Allow functions returning void or cstring to appear in FROM clause, to make life cushy for the JDBC driver. Centralize the decision-making that affects this by inventing a get_type_func_class() function, rather than adding special cases in half a dozen places.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/tupdesc.c | modified | +6 −6 |
| src/backend/executor/nodeFunctionscan.c | modified | +7 −8 |
| src/backend/parser/parse_relation.c | modified | +33 −39 |
| src/backend/utils/cache/lsyscache.c | modified | +37 −1 |
| src/include/utils/lsyscache.h | modified | +11 −1 |