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

From Doug Royer
Subject Re: [GENERAL] division by zero
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: [GENERAL] division by zero  ("Merlin Moncure" <[email protected]>)
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
-------------------------------|[email protected]                 | 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