From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: integer ceiling in LIMIT and OFFSET |
Date: | 2003-10-26 04:43:51 |
Message-ID: | 200310260443.h9Q4hp314688@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Rod Taylor wrote:
-- Start of PGP signed section.
> On Wed, 2003-10-22 at 04:01, Christopher Kings-Lynne wrote:
> > Hi guys,
> >
> > What is the limit on the number of rows in a PostgreSQL table? If it's
> > more than MAXINT, we have a problem:
> >
> > phppgadmin# select * from test limit 2147483648;
> > ERROR: integer out of range
> >
> > Same problem with OFFSET.
>
> I see you're point, but nobody is going to be interested in the first 2
> billion rows of a table without using a cursor and having some other
> process do the math in the background.
>
> That said, perhaps the TODO for changing LIMIT / OFFSET to be expression
> based should also mention bumping them to int8.
Added to TODO:
* Change LIMIT/OFFSET to use int8
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2003-10-26 04:55:22 | Re: 7.4 compatibility question |
Previous Message | Bruce Momjian | 2003-10-26 04:42:29 | Re: Timestamp docs weirdness |