postgresql/src/include/executor
Tom Lane a31e64d065 Fix some issues in new hashtable size calculations in nodeHash.c.
Limit the size of the hashtable pointer array to not more than
MaxAllocSize, per reports from Kouhei Kaigai and others of "invalid memory
alloc request size" failures.  There was discussion of allowing the array
to get larger than that by using the "huge" palloc API, but so far no proof
that that is actually a good idea, and at this point in the 9.5 cycle major
changes from old behavior don't seem like the way to go.

Fix a rather serious secondary bug in the new code, which was that it
didn't ensure nbuckets remained a power of 2 when recomputing it for the
multiple-batch case.

Clean up sloppy division of labor between ExecHashIncreaseNumBuckets and
its sole call site.
2015-10-04 14:06:50 -04:00
..
execdebug.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
execdesc.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
execParallel.h Parallel executor support. 2015-09-28 21:55:57 -04:00
executor.h Add a Gather executor node. 2015-09-30 19:23:36 -04:00
functions.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
hashjoin.h Fix some issues in new hashtable size calculations in nodeHash.c. 2015-10-04 14:06:50 -04:00
instrument.h Parallel executor support. 2015-09-28 21:55:57 -04:00
nodeAgg.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeAppend.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeBitmapAnd.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeBitmapHeapscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeBitmapIndexscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeBitmapOr.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeCtescan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeCustom.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeForeignscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeFunctionscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeGather.h Add a Gather executor node. 2015-09-30 19:23:36 -04:00
nodeGroup.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeHash.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeHashjoin.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeIndexonlyscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeIndexscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeLimit.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeLockRows.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeMaterial.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeMergeAppend.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeMergejoin.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeModifyTable.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeNestloop.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeRecursiveunion.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeResult.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeSamplescan.h Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
nodeSeqscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeSetOp.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeSort.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeSubplan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeSubqueryscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeTidscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeUnique.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeValuesscan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeWindowAgg.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodeWorktablescan.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
spi.h Support "expanded" objects, particularly arrays, for better performance. 2015-05-14 12:08:49 -04:00
spi_priv.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
tqueue.h Glue layer to connect the executor to the shm_mq mechanism. 2015-09-18 21:56:58 -04:00
tstoreReceiver.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
tuptable.h Support "expanded" objects, particularly arrays, for better performance. 2015-05-14 12:08:49 -04:00