Re: [GENERAL] division by zero

From: Doug Royer <Doug(at)Royer(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] division by zero
Date: 2003-03-10 21:36:19
Message-ID: 3E6D0553.6000600@Royer.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Merlin Moncure wrote:
>
>
> __try and __except, as far as I can tell are the only way to gracefully
> handle certain events. There is also a __finally. This is very much a
> Microsoft hack to C and not C++.
>
> GetExceptionCode() is from the win32 api.
>
> In C++, you get to use the much more standard try/catch system.

No, try/catch does not trap division by zero unless the underlying
implementation throws an error there is nothing to catch.

On Unix's trap for signal SIGFPE - standard POSIX.

--

Doug Royer | http://INET-Consulting.com
-------------------------------|-----------------------------
Doug(at)Royer(dot)com | Office: (208)612-INET
http://Royer.com/People/Doug | Fax: (866)594-8574
| Cell: (208)520-4044

We Do Standards - You Need Standards

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashley Cambrell 2003-03-10 21:37:28 Re: Roadmap for FE/BE protocol redesign
Previous Message Tom Lane 2003-03-10 21:26:24 Re: [INTERFACES] Roadmap for FE/BE protocol redesign