Re: compile cube extension with float4 precision storing

2020-06-19 Thread Tomas Vondra
On Fri, Jun 12, 2020 at 02:41:08PM +0300, Siarhei D wrote: 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 enoug

compile cube extension with float4 precision storing

2020-06-12 Thread Siarhei D
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. No