postgresql/src/backend
Tom Lane a9ae99d019 Prevent bogus pullup of constant-valued functions returning composite.
Fix an oversight in commit 7266d0997: as it stood, the code failed
when a function-in-FROM returns composite and can be simplified
to a composite constant.

For the moment, just test for composite result and abandon pullup
if we see one.  To make it actually work, we'd have to decompose
the composite constant into per-column constants; which is surely
do-able, but I'm not convinced it's worth the code space.

Per report from Raúl Marín Rodríguez.

Discussion: https://postgr.es/m/CAM6_UM4isP+buRA5sWodO_MUEgutms-KDfnkwGmryc5DGj9XuQ@mail.gmail.com
2019-09-24 12:11:32 -04:00
..
access Speedup truncations of relation forks. 2019-09-24 17:31:26 +09:00
bootstrap Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
catalog Speedup truncations of relation forks. 2019-09-24 17:31:26 +09:00
commands Make some efficiency improvements in LISTEN/NOTIFY. 2019-09-22 11:46:29 -04:00
executor Fix ExprState's tag to be of type NodeTag rather than Node. 2019-09-23 15:28:13 -07:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Don't rely on llvm::make_unique. 2019-08-25 14:45:51 +12:00
lib Fix inconsistencies in the code 2019-07-08 13:15:09 +09:00
libpq Message style fixes 2019-09-23 13:38:39 +02:00
main initdb: Remove obsolete locale handling 2019-08-14 06:51:13 +02:00
nodes Allow setting statistics target for extended statistics 2019-09-11 00:25:51 +02:00
optimizer Prevent bogus pullup of constant-valued functions returning composite. 2019-09-24 12:11:32 -04:00
parser Allow setting statistics target for extended statistics 2019-09-11 00:25:51 +02:00
partitioning Avoid using INFO elevel for what are fundamentally debug messages. 2019-09-07 19:03:11 -04: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 Rearrange postmaster's startup sequence for better syslogger results. 2019-09-11 11:43:01 -04:00
regex Fix inconsistencies and typos in the tree, take 9 2019-08-05 12:14:58 +09:00
replication Message style fixes 2019-09-23 13:38:39 +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 Speedup truncations of relation forks. 2019-09-24 17:31:26 +09:00
tcop Allow setting statistics target for extended statistics 2019-09-11 00:25:51 +02:00
tsearch Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
utils Message style fixes 2019-09-23 13:38:39 +02: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