Re: [GENERAL] division by zero - Mailing list pgsql-hackers

From Doug Royer
Subject Re: [GENERAL] division by zero
Date
Msg-id 3E6D0553.6000600@Royer.com
Whole thread Raw
In response to Re: [GENERAL] division by zero  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
List 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@Royer.com                 | Office: (208)612-INET
http://Royer.com/People/Doug  |    Fax: (866)594-8574                                |   Cell: (208)520-4044
 
                We Do Standards - You Need Standards



pgsql-hackers by date:

Previous
From: Ashley Cambrell
Date:
Subject: Re: Roadmap for FE/BE protocol redesign
Next
From: Bruce Badger
Date:
Subject: Re: [INTERFACES] Roadmap for FE/BE protocol redesign