Re: Wider than float8 - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Wider than float8
Date
Msg-id 200706090053.l590rbB15027@momjian.us
Whole thread Raw
In response to Re: Wider than float8  (felix@crowfix.com)
List pgsql-general
felix@crowfix.com wrote:
> On Fri, Jun 08, 2007 at 03:00:35PM -0400, Bruce Momjian wrote:
> > No.  Frankly I didn't know 12-byte floats were supported in CPUs until
> > you posted this.  You could write your own data type to use it, of
> > course.
>
> I didn't either, and have no use for them, but curiousity compels me
> to wonder how hard this would be.  I don't have the sources right at
> hand.  Is all float8 code in one source file, and would it be a pretty
> simple matter to add float 12 with a search and replace and not much
> more?

You would look in src/backend/utils/adt/float.c for the existing float8
data types, and in /contrib for examples of creating data types that are
not in the backend by default.

--
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: felix@crowfix.com
Date:
Subject: Re: Wider than float8
Next
From: Rodrigo De León
Date:
Subject: Re: parametered views