pgsql: Allow tupleslots to have a fixed tupledesc, use in executor node

2018-02-16 Thread Andres Freund
Allow tupleslots to have a fixed tupledesc, use in executor nodes. The reason for doing so is that it will allow expression evaluation to optimize based on the underlying tupledesc. In particular it will allow to JIT tuple deforming together with the expression itself. For that expression initial

Re: pgsql: Do execGrouping.c via expression eval machinery, take two.

2018-02-16 Thread Andres Freund
Hi, On 2018-02-16 22:48:39 +, Andres Freund wrote: > Do execGrouping.c via expression eval machinery, take two. > > This has a performance benefit on own, although not hugely so. The > primary benefit is that it will allow for to JIT tuple deforming and > comparator invocations. > > Large pa

pgsql: Do execGrouping.c via expression eval machinery, take two.

2018-02-16 Thread Andres Freund
Do execGrouping.c via expression eval machinery, take two. This has a performance benefit on own, although not hugely so. The primary benefit is that it will allow for to JIT tuple deforming and comparator invocations. Large parts of this were previously committed (773aec7aa), but the commit cont

pgsql: Fix crash when canceling parallel query

2018-02-16 Thread Peter Eisentraut
Fix crash when canceling parallel query elog(FATAL) would end up calling PortalCleanup(), which would call executor shutdown code, which could fail and crash, especially under parallel query. This was introduced by 8561e4840c81f7e345be2df170839846814fa004, which did not want to mark an active por

pgsql: Remove some inappropriate #includes.

2018-02-16 Thread Tom Lane
Remove some inappropriate #includes. Other header files should never #include postgres.h (nor postgres_fe.h, nor c.h), per project policy. Also, there's no need for any backend .c file to explicitly include elog.h or palloc.h, because postgres.h pulls those in already. Extracted from a larger pa

pgsql: Rename enable_partition_wise_join to enable_partitionwise_join

2018-02-16 Thread Peter Eisentraut
Rename enable_partition_wise_join to enable_partitionwise_join Discussion: https://www.postgresql.org/message-id/flat/ad24e4f4-6481-066e-e3fb-6ef4a3121882%402ndquadrant.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/2fb1abaeb016aeb45b9e6d0b81b7a7e92bb251b9 Mo

pgsql: Fix typo in comment

2018-02-16 Thread Magnus Hagander
Fix typo in comment Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/f8437c819acc37b43bd2d5b19a6b7609b4ea1292 Modified Files -- src/backend/access/transam/xlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)