compile cube extension with float4 precision storing - Mailing list pgsql-hackers

From Siarhei D
Subject compile cube extension with float4 precision storing
Date
Msg-id CAGqr3QtV_k5G0-8AeoXckVwO7UV8PMR0JJGizd3A8Ay9BreZ5A@mail.gmail.com
Whole thread Raw
Responses Re: compile cube extension with float4 precision storing  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
List pgsql-hackers
Is it possible to make cube extension with float(4bytes) precision instead of double(8bytes)?

I use cube extension for storing embedding vectors and calculation distance on them. During comparing vectors, a 4byte float precision is enough. Storing 8 byte double precision is wasting disk space.

Now to avoid disk wasting I store vectors as real[] array and create cube objects on the fly. But this solution is wasting cpu time

--

Siarhei Damanau

pgsql-hackers by date:

Previous
From: Ashutosh Sharma
Date:
Subject: Re: Parallel copy
Next
From: Juan José Santamaría Flecha
Date:
Subject: Re: TAP tests and symlinks on Windows