pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: pgsql-performance@postgresql.org
Subject: Re: [HACKERS] qsort again (was Re: Strange Create Index
Date: Fri, 17 Feb 2006 03:02:19 +0100
Message-ID: <20060217020219.GE5273@uio.no> (raw)
In-Reply-To: <op.s42829s9cigqcu@apollo13>
References: <7.0.1.0.2.20060215194635.03b55da0@earthlink.net>
	<21615.1140052893@sss.pgh.pa.us>
	<7.0.1.0.2.20060215223710.03a7c618@earthlink.net>
	<20060216113522.GA3461@uio.no>
	<7.0.1.0.2.20060216071053.0385a1a8@earthlink.net>
	<43F481CD.2010509@logix-tt.com>
	<43F4A7D8.4050907@modgraph-usa.com>
	<29277.1140110108@sss.pgh.pa.us>
	<1140128256.9076.254.camel@archimedes>
	<op.s42829s9cigqcu@apollo13>

On Fri, Feb 17, 2006 at 12:05:23AM +0100, PFC wrote:
> 	I would have said a 64 bit int, but it's the same idea. However it 
> 	won't  work for floats, which is a pity, because floats fit in 64 bits. 

Actually, you can compare IEEE floats directly as ints, as long as they're
positive. (If they can be both positive and negative, you need to take
special care of the sign bit first, but it's still doable.)

/* Steinar */
-- 
Homepage: http://www.sesse.net/



view thread (6+ messages)

Message-ID: <20060217020219.GE5273@uio.no>
Permalink:  ../20060217020219.GE5273@uio.no/
Also on:    postgresql.org/message-id/20060217020219.GE5273@uio.no

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sgunderson@bigfoot.com
  Subject: Re: [HACKERS] qsort again (was Re: Strange Create Index
  In-Reply-To: <20060217020219.GE5273@uio.no>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox