66 *
77 * Copyright (c) 1994, Regents of the University of California
88 *
9- * $Id: execnodes.h,v 1.27 1999/03/23 16:51:00 momjian Exp $
9+ * $Id: execnodes.h,v 1.28 1999/05/18 21:34:26 tgl Exp $
1010 *
1111 *-------------------------------------------------------------------------
1212 */
@@ -492,24 +492,16 @@ typedef struct MergeJoinState
492492/* ----------------
493493 * HashJoinState information
494494 *
495- *hj_HashTableaddress of the hash table for the hashjoin
496- *hj_HashTableShmIdshared memory id of hash table
497- *hj_CurBucketthe current hash bucket that we are searching
498- *for matches of the current outer tuple
499- *hj_CurTuplethe current matching inner tuple in the
500- *current hash bucket
501- *hj_CurOTuplethe current matching inner tuple in the
502- *current hash overflow chain
495+ *hj_HashTablehash table for the hashjoin
496+ *hj_CurBucketNobucket# for current outer tuple
497+ *hj_CurTuplelast inner tuple matched to current outer
498+ *tuple, or NULL if starting search
499+ *(CurBucketNo and CurTuple are meaningless
500+ * unless OuterTupleSlot is nonempty!)
503501 *hj_InnerHashKeythe inner hash key in the hashjoin condition
504- *hj_OuterBatchesfile descriptors for outer batches
505- *hj_InnerBatchesfile descriptors for inner batches
506- *hj_OuterReadPoscurrent read position of outer batch
507- *hj_OuterReadBlkcurrent read block of outer batch
508502 *hj_OuterTupleSlottuple slot for outer tuples
509503 *hj_HashTupleSlottuple slot for hashed tuples
510504 *
511- *
512- *
513505 * JoinState information
514506 *
515507 * CommonState information
@@ -525,16 +517,10 @@ typedef struct MergeJoinState
525517typedef struct HashJoinState
526518{
527519JoinState jstate ;/* its first field is NodeTag */
528- HashJoinTable hj_HashTable ;
529- IpcMemoryId hj_HashTableShmId ;
530- HashBucket hj_CurBucket ;
531- HeapTuple hj_CurTuple ;
532- OverflowTuple hj_CurOTuple ;
533- Var * hj_InnerHashKey ;
534- File * hj_OuterBatches ;
535- File * hj_InnerBatches ;
536- char * hj_OuterReadPos ;
537- int hj_OuterReadBlk ;
520+ HashJoinTable hj_HashTable ;
521+ int hj_CurBucketNo ;
522+ HashJoinTuple hj_CurTuple ;
523+ Var * hj_InnerHashKey ;
538524TupleTableSlot * hj_OuterTupleSlot ;
539525TupleTableSlot * hj_HashTupleSlot ;
540526}HashJoinState ;
@@ -668,7 +654,7 @@ typedef CommonState UniqueState;
668654/* ----------------
669655 * HashState information
670656 *
671- *hashBatches file descriptors for thebatches
657+ *hashtablehash table for thehashjoin
672658 *
673659 * CommonState information
674660 *
@@ -683,7 +669,7 @@ typedef CommonState UniqueState;
683669typedef struct HashState
684670{
685671CommonState cstate ;/* its first field is NodeTag */
686- File * hashBatches ;
672+ HashJoinTable hashtable ;
687673}HashState ;
688674
689675#ifdef NOT_USED