Index: createplan.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v retrieving revision 1.248 diff -r1.248 createplan.c 1651a1652,1660 > #define PATH_ROWS(path) \ > (IsA(path, UniquePath) ? \ > ((UniquePath *) (path))->rows : \ > (path)->parent->rows) > > extern void ExecChooseHashTableSize(double ntuples, int tupwidth, > int *numbuckets, > int *numbatches); > 1663a1673,1676 > Path *outer_path = best_path->jpath.outerjoinpath; > double outer_path_rows = PATH_ROWS(outer_path); > int nbatch; > int nbuckets; 1699a1713,1719 > /* We don't want any excess columns in tuples we write to disk */ > ExecChooseHashTableSize(outer_path_rows,outer_path->parent->width,&nbuckets,&nbatch); > if (nbatch > 1) > { > disuse_physical_tlist(outer_plan, outer_path); > } >