Index: src/backend/utils/adt/float.c
===================================================================
RCS file: /home/neilc/postgres/cvs_root/pgsql/src/backend/utils/adt/float.c,v
retrieving revision 1.150
diff -p -c -r1.150 float.c
*** src/backend/utils/adt/float.c	5 Jun 2007 21:31:06 -0000	1.150
--- src/backend/utils/adt/float.c	19 Sep 2007 00:51:27 -0000
*************** float8_corr(PG_FUNCTION_ARGS)
*** 2274,2281 ****
  	if (numeratorX <= 0 || numeratorY <= 0)
  		PG_RETURN_NULL();
  
! 	PG_RETURN_FLOAT8(sqrt((numeratorXY * numeratorXY) /
! 						  (numeratorX * numeratorY)));
  }
  
  Datum
--- 2274,2280 ----
  	if (numeratorX <= 0 || numeratorY <= 0)
  		PG_RETURN_NULL();
  
! 	PG_RETURN_FLOAT8(numeratorXY / sqrt(numeratorX * numeratorY));
  }
  
  Datum
