Re: [HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-24 Thread Tomas Vondra
On 12.6.2013 07:03, Pavel Stehule wrote: > Hello > > I worked with gdc' _Decimal* types last week > > https://github.com/okbob/pgDecimal > > I tested it, and should to say, so implementation in gcc is not good > - lack of lot of functionality, and our Money type is little bit > faster :( Tomas V

Re: [HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-12 Thread Tom Lane
Simon Riggs writes: > On 12 June 2013 01:35, Tom Lane wrote: >> On the whole, I think the effort would be a lot more usefully spent on >> trying to make the existing NUMERIC support go faster. > Did you have a specific idea in mind? Or an area of investigation? As I said further up, we should l

Re: [HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-12 Thread Simon Riggs
On 12 June 2013 01:35, Tom Lane wrote: > On the whole, I think the effort would be a lot more usefully spent on > trying to make the existing NUMERIC support go faster. Did you have a specific idea in mind? Or an area of investigation? -- Simon Riggs http://www.2ndQuadrant.co

Re: [HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-12 Thread Thomas Munro
On 12 June 2013 00:56, Craig Ringer wrote: > The main thing I'm wondering is how/if to handle backward compatibility > with the existing NUMERIC and its DECIMAL alias, or whether adding new > DECIMAL32, DECIMAL64, and DECIMAL128 types would be more appropriate. I'd > love to just use the SQL stan

Re: [HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-11 Thread Craig Ringer
On 06/12/2013 01:03 PM, Pavel Stehule wrote: > Hello > > I worked with gdc' _Decimal* types last week > > https://github.com/okbob/pgDecimal > > I tested it, and should to say, so implementation in gcc is not good - > lack of lot of functionality, and our Money type is little bit faster > :( Th

Re: [HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-11 Thread Pavel Stehule
Hello I worked with gdc' _Decimal* types last week https://github.com/okbob/pgDecimal I tested it, and should to say, so implementation in gcc is not good - lack of lot of functionality, and our Money type is little bit faster :( Tomas Vondra play with own implementation, but I don't know any pe

Re: [HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-11 Thread Craig Ringer
On 06/12/2013 08:35 AM, Tom Lane wrote: > Craig Ringer writes: >> Currently DECIMAL is an alias for NUMERIC, Pg's built-in arbitrary >> precision and scale decimal type. I'd like to explore the possibility of >> using hardware decimal floating point support in newer processors, >> compilers and C

Re: [HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-11 Thread Tom Lane
Craig Ringer writes: > Currently DECIMAL is an alias for NUMERIC, Pg's built-in arbitrary > precision and scale decimal type. I'd like to explore the possibility of > using hardware decimal floating point support in newer processors, > compilers and C libraries to enhance DECIMAL / NUMERIC perform

[HACKERS] Adding IEEE 754:2008 decimal floating point and hardware support for it

2013-06-11 Thread Craig Ringer
Hi all Currently DECIMAL is an alias for NUMERIC, Pg's built-in arbitrary precision and scale decimal type. I'd like to explore the possibility of using hardware decimal floating point support in newer processors, compilers and C libraries to enhance DECIMAL / NUMERIC performance. With the advent