Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-25 Thread Bruce Momjian
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 21474

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Jon Jensen
On Wed, 22 Oct 2003, scott.marlowe wrote: > > > That said, perhaps the TODO for changing LIMIT / OFFSET to be expression > > > based should also mention bumping them to int8. > > > > Can't get excited about it ... this would slow down the normal use of > > the facility for what seems a completely

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Tom Lane
Rod Taylor <[EMAIL PROTECTED]> writes: > A cursor pulling small chunks of a multi-billion tuple set is probably > much more common, so we should ensure those work. This should work ... but I haven't personally had the patience to test it ... regards, tom lane

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Rod Taylor
On Wed, 2003-10-22 at 12:08, scott.marlowe wrote: > On Wed, 22 Oct 2003, Tom Lane wrote: > > > Rod Taylor <[EMAIL PROTECTED]> writes: > > > That said, perhaps the TODO for changing LIMIT / OFFSET to be expression > > > based should also mention bumping them to int8. > > > > Can't get excited abou

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread scott.marlowe
On Wed, 22 Oct 2003, Tom Lane wrote: > Rod Taylor <[EMAIL PROTECTED]> writes: > > That said, perhaps the TODO for changing LIMIT / OFFSET to be expression > > based should also mention bumping them to int8. > > Can't get excited about it ... this would slow down the normal use of > the facility f

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Rod Taylor
On Wed, 2003-10-22 at 10:22, Christopher Kings-Lynne wrote: > > 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. > > You have the same problem: > test=# move

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Stephan Szabo
On Wed, 22 Oct 2003, Christopher Kings-Lynne wrote: > > 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. > > You have the same problem: > > test=# begin; > BEG

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Christopher Kings-Lynne
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. You have the same problem: test=# begin; BEGIN test=# declare c cursor for select * from a; DECLARE CURSOR test=# move

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Tom Lane
Rod Taylor <[EMAIL PROTECTED]> writes: > That said, perhaps the TODO for changing LIMIT / OFFSET to be expression > based should also mention bumping them to int8. Can't get excited about it ... this would slow down the normal use of the facility for what seems a completely hypothetical need.

Re: [HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Rod Taylor
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 OFF

[HACKERS] integer ceiling in LIMIT and OFFSET

2003-10-22 Thread Christopher Kings-Lynne
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. Chris ---(end of broadcast)---