postgresql/src/include/executor
Tom Lane ca5b42d854 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:51 -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
executor.h pgindent run for 9.5 2015-05-23 21:35:49 -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:51 -04:00
instrument.h Define integer limits independently from the system definitions. 2015-04-02 17:43:35 +02: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
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
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