* BuildTupleHashTable is a backwards-compatibilty wrapper for * BuildTupleHashTableExt(), that allocates the hashtable's metadata in * tablecxt. Note that hashtables created this way cannot be reset leak-free * with ResetTupleHashTable(). */
| 263 | * with ResetTupleHashTable(). |
| 264 | */ |
| 265 | TupleHashTable |
| 266 | BuildTupleHashTable(PlanState *parent, |
| 267 | TupleDesc inputDesc, |
| 268 | int numCols, AttrNumber *keyColIdx, |
| 269 | const Oid *eqfuncoids, |
| 270 | FmgrInfo *hashfunctions, |
| 271 | Oid *collations, |
| 272 | long nbuckets, Size additionalsize, |
| 273 | MemoryContext tablecxt, |
| 274 | MemoryContext tempcxt, |
| 275 | bool use_variable_hash_iv) |
| 276 | { |
| 277 | return BuildTupleHashTableExt(parent, |
| 278 | inputDesc, |
| 279 | numCols, keyColIdx, |
| 280 | eqfuncoids, |
| 281 | hashfunctions, |
| 282 | collations, |
| 283 | nbuckets, additionalsize, |
| 284 | tablecxt, |
| 285 | tablecxt, |
| 286 | tempcxt, |
| 287 | use_variable_hash_iv); |
| 288 | } |
| 289 | |
| 290 | /* |
| 291 | * Reset contents of the hashtable to be empty, preserving all the non-content |
nothing calls this directly
no test coverage detected