Re: Query optimization using order by and limit - Mailing list pgsql-performance

From Tom Lane
Subject Re: Query optimization using order by and limit
Date
Msg-id 7868.1316661773@sss.pgh.pa.us
Whole thread Raw
In response to Re: Query optimization using order by and limit  (Michael Viscuso <michael.viscuso@getcarbonblack.com>)
Responses Re: Query optimization using order by and limit  ("ktm@rice.edu" <ktm@rice.edu>)
List pgsql-performance
Michael Viscuso <michael.viscuso@getcarbonblack.com> writes:
> Greg/Tom, you are correct, these columns should be modified to whatever
> is easiest for Postgres to recognize 64-bit unsigned integers.  Would
> you still recommend bigint for unsigned integers?  I likely read the
> wrong documentation that suggested bigint for signed 64-bit integers and
> numeric(20) for unsigned 64-bit integers.

Unsigned?  Oh, hm, that's a bit of a problem because we don't have any
unsigned types.  If you really need to go to 2^64 and not 2^63 then
you're stuck with numeric ... but that last bit is costing ya a lot.

            regards, tom lane

pgsql-performance by date:

Previous
From: Michael Viscuso
Date:
Subject: Re: Query optimization using order by and limit
Next
From: "ktm@rice.edu"
Date:
Subject: Re: Query optimization using order by and limit