Re: FPE on Alpha in Select with PKEY (Patch) - Mailing list pgsql-ports

From Adriaan Joubert
Subject Re: FPE on Alpha in Select with PKEY (Patch)
Date
Msg-id 36DBF647.F5F38720@albourne.com
Whole thread Raw
In response to FPE on Alpha in Select with PKEY  (Adriaan Joubert <a.joubert@albourne.com>)
List pgsql-ports
Hi,

    I seem to have fixed the floating point problem on the Alphas -- at
least for my test cases. It requires the following patch at the end of
this mail. Could somebody who know postgres a bit better than me please
double-check it, and let me know whether it is ok? The regression test
seemed to run ok'ish (i.e. no more than before failed).

Adriaan

*** ./src/backend/optimizer/path/orindxpath.c.orig      Mon Sep 21
18:41:27 1998
--- ./src/backend/optimizer/path/orindxpath.c   Tue Mar  2 16:25:11 1999
***************
*** 133,139 ****

xfunc_get_path_cost((Path) pathnode);
                                }
  #endif
!                               clausenode->selectivity = (Cost)
floatVal(selecs);
                                t_list = lappend(t_list, pathnode);
                        }
                }
--- 133,139 ----

xfunc_get_path_cost((Path) pathnode);
                                }
  #endif
!                               clausenode->selectivity = (Cost)
floatVal(selecs->elem.ptr_value);
                                t_list = lappend(t_list, pathnode);
                        }
                }

pgsql-ports by date:

Previous
From: Unprivileged user
Date:
Subject: Port Bug Report: y.tab.h not exist
Next
From: mueller@pmsun20.dial.eunet.ch (Pascal Mueller)
Date:
Subject: Install Bug?