File tree Expand file tree Collapse file tree 3 files changed +20
-7
lines changed
Expand file tree Collapse file tree 3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.1.1.1 1996/07/09 06:21:26 scrappy Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.2 1996/07/22 23:30:40 scrappy Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -572,6 +572,7 @@ ExecHashOverflowInsert(HashJoinTable hashtable,
572572 newend = (RelativeAddr )LONGALIGN (hashtable -> overflownext + sizeof (* otuple )
573573 + heapTuple -> t_len );
574574 if (newend > hashtable -> bottom ) {
575+ #if 0
575576 elog (DEBUG , "hash table out of memory. expanding." );
576577 /* ------------------
577578 * XXX this is a temporary hack
@@ -586,6 +587,17 @@ ExecHashOverflowInsert(HashJoinTable hashtable,
586587 perror ("repalloc" );
587588 elog (WARN , "can't expand hashtable." );
588589 }
590+ #else
591+ /* ------------------
592+ * XXX the temporary hack above doesn't work because things
593+ * above us don't know that we've moved the hash table!
594+ * - Chris Dunlop, <chris@onthe.net.au>
595+ * ------------------
596+ */
597+ elog (WARN , "hash table out of memory. Use -B parameter to increase buffe
598+ rs .");
599+ #endif
600+
589601 }
590602
591603 /* ----------------
Original file line number Diff line number Diff line change 77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.2 1996/07/16 07:12:39 scrappy Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.3 1996/07/22 23:30:50 scrappy Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
1717#include <limits.h>
1818#define MAXINT INT_MAX
1919#else
20- # if defined(PORTNAME_BSD44_derived ) || defined(PORTNAME_bsdi ) || defined(PORTNAME_bsdi_2_1 )
20+ # if defined(PORTNAME_BSD44_derived ) || \
21+ defined(PORTNAME_bsdi ) || \
22+ defined(PORTNAME_bsdi_2_1 )
2123# include <machine/limits.h>
2224# define MAXINT INT_MAX
2325# else
Original file line number Diff line number Diff line change 77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/clauseinfo.c,v 1.1.1.1 1996/07/09 06:21:38 scrappy Exp $
10+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/clauseinfo.c,v 1.2 1996/07/22 23:30:57 scrappy Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -146,12 +146,11 @@ get_joinvars(Oid relid,
146146
147147 if ( IsA (get_leftop (clause ),Var ) &&
148148 (relid == (get_leftop (clause ))-> varno )) {
149-
150- result1 = lappendi (result1 , (get_leftop (clause ))-> varattno );
149+ result1 = lappendi (result1 , (int4 )(get_leftop (clause ))-> varattno );
151150 result2 = lappend (result2 , "" );
152151 result3 = lappendi (result3 , _SELEC_CONSTANT_RIGHT_ );
153152 } else {
154- result1 = lappendi (result1 , (get_rightop (clause ))-> varattno );
153+ result1 = lappendi (result1 , (int4 )( get_rightop (clause ))-> varattno );
155154 result2 = lappend (result2 , "" );
156155 result3 = lappendi (result3 , _SELEC_CONSTANT_LEFT_ );
157156 }
You can’t perform that action at this time.
0 commit comments