postgresql/src/backend
Tom Lane 8b7a0f1d11 Allow extracting fields from a ROW() expression in more cases.
Teach get_expr_result_type() to manufacture a tuple descriptor directly
from a RowExpr node.  If the RowExpr has type RECORD, this is the only
way to get a tupdesc for its result, since even if the rowtype has been
blessed, we don't have its typmod available at this point.  (If the
RowExpr has some named composite type, we continue to let the existing
code handle it, since the RowExpr might well not have the correct column
names embedded in it.)

This fixes assorted corner cases illustrated by the added regression
tests.

Discussion: https://postgr.es/m/10872.1572202006@sss.pgh.pa.us
2019-10-28 15:08:24 -04:00
..
access Fix initialization of fake LSN for unlogged relations 2019-10-27 13:54:12 +09:00
bootstrap Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
catalog Fix dependency handling at swap phase of REINDEX CONCURRENTLY 2019-10-28 11:57:31 +09:00
commands Handle interrupts within a transaction context in REINDEX CONCURRENTLY 2019-10-25 10:20:08 +09:00
executor Rename some toasting functions based on whether they are heap-specific. 2019-10-04 14:24:46 -04:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Don't generate EEOP_*_FETCHSOME operations for slots know to be virtual. 2019-09-30 16:06:16 -07:00
lib Fix inconsistencies in the code 2019-07-08 13:15:09 +09:00
libpq Fix most -Wundef warnings 2019-10-19 18:31:38 +02:00
main initdb: Remove obsolete locale handling 2019-08-14 06:51:13 +02:00
nodes Avoid trying to release a List's initial allocation via repalloc(). 2019-10-06 12:06:30 -04:00
optimizer Remove last traces of heap_open/close in the tree 2019-10-19 11:18:15 +09:00
parser Fix handling of GENERATED columns in CREATE TABLE LIKE INCLUDING DEFAULTS. 2019-09-25 17:30:42 -04:00
partitioning Update obsolete comment. 2019-10-21 17:30:00 +09:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Remove mingwcompat.c 2019-09-17 11:34:28 +02:00
postmaster Clean up properly error_context_stack in autovacuum worker on exception 2019-10-23 10:25:06 +09:00
regex Fix inconsistencies and typos in the tree, take 9 2019-08-05 12:14:58 +09:00
replication Fix most -Wundef warnings 2019-10-19 18:31:38 +02:00
rewrite Rationalize use of list_concat + list_copy combinations. 2019-08-12 11:20:18 -04:00
snowball Sync our Snowball stemmer dictionaries with current upstream 2019-07-04 13:26:48 +02:00
statistics Allow setting statistics target for extended statistics 2019-09-11 00:25:51 +02:00
storage Fix most -Wundef warnings 2019-10-19 18:31:38 +02:00
tcop Improve management of statement timeouts. 2019-10-25 11:41:16 -04:00
tsearch Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
utils Allow extracting fields from a ROW() expression in more cases. 2019-10-28 15:08:24 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00