pgsql: Fix type-checking of RECORD-returning functions in FROM, redux.

2024-04-15 Thread Tom Lane
Fix type-checking of RECORD-returning functions in FROM, redux. Commit 2ed8f9a01 intended to institute a policy that if a RangeTblFunction has a coldeflist, then the function return type is certainly RECORD, and we should use the coldeflist as the source of truth about what the columns of the

pgsql: Fix type-checking of RECORD-returning functions in FROM, redux.

2024-04-15 Thread Tom Lane
Fix type-checking of RECORD-returning functions in FROM, redux. Commit 2ed8f9a01 intended to institute a policy that if a RangeTblFunction has a coldeflist, then the function return type is certainly RECORD, and we should use the coldeflist as the source of truth about what the columns of the

pgsql: Fix type-checking of RECORD-returning functions in FROM, redux.

2024-04-15 Thread Tom Lane
Fix type-checking of RECORD-returning functions in FROM, redux. Commit 2ed8f9a01 intended to institute a policy that if a RangeTblFunction has a coldeflist, then the function return type is certainly RECORD, and we should use the coldeflist as the source of truth about what the columns of the

pgsql: Fix type-checking of RECORD-returning functions in FROM, redux.

2024-04-15 Thread Tom Lane
Fix type-checking of RECORD-returning functions in FROM, redux. Commit 2ed8f9a01 intended to institute a policy that if a RangeTblFunction has a coldeflist, then the function return type is certainly RECORD, and we should use the coldeflist as the source of truth about what the columns of the

pgsql: Fix type-checking of RECORD-returning functions in FROM, redux.

2024-04-15 Thread Tom Lane
Fix type-checking of RECORD-returning functions in FROM, redux. Commit 2ed8f9a01 intended to institute a policy that if a RangeTblFunction has a coldeflist, then the function return type is certainly RECORD, and we should use the coldeflist as the source of truth about what the columns of the

pgsql: Fix type-checking of RECORD-returning functions in FROM, redux.

2024-04-15 Thread Tom Lane
Fix type-checking of RECORD-returning functions in FROM, redux. Commit 2ed8f9a01 intended to institute a policy that if a RangeTblFunction has a coldeflist, then the function return type is certainly RECORD, and we should use the coldeflist as the source of truth about what the columns of the