Unix Technical Forum

Re: Proposed TODO: fetch->INT8

This is a discussion on Re: Proposed TODO: fetch->INT8 within the pgsql Hackers forums, part of the PostgreSQL category; --> Jeff wrote: > Is there a practical use for retrieving > 2^31 records at once? > > (this is ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 03:26 AM
Merlin Moncure
 
Posts: n/a
Default Re: Proposed TODO: fetch->INT8

Jeff wrote:
> Is there a practical use for retrieving > 2^31 records at once?
>
> (this is a serious question, I'm not arguing that it should cause a
> syntax error)
>
> Regards,
> Jeff Davis
>
> On Mon, 2005-01-24 at 14:13 -0500, Merlin Moncure wrote:
> > I was browsing the TODO list and I noticed the todo to bump

limit/offset
> > to int8. IMO, the flavors of fetch that take a numeric parameter

need
> > this as well.
> >
> > FWIW, trying to pass integer > 2^31 to fetch gives a syntax error,

which
> > is clearly wrong.


No, but don't forget about relative positioning:
fetch relative c from huge_cursor;

Could make a reasonable case for that.
Merlin

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 03:34 AM
Bruce Momjian
 
Posts: n/a
Default Re: Proposed TODO: fetch->INT8

Merlin Moncure wrote:
> Jeff wrote:
> > Is there a practical use for retrieving > 2^31 records at once?
> >
> > (this is a serious question, I'm not arguing that it should cause a
> > syntax error)
> >
> > Regards,
> > Jeff Davis
> >
> > On Mon, 2005-01-24 at 14:13 -0500, Merlin Moncure wrote:
> > > I was browsing the TODO list and I noticed the todo to bump

> limit/offset
> > > to int8. IMO, the flavors of fetch that take a numeric parameter

> need
> > > this as well.
> > >
> > > FWIW, trying to pass integer > 2^31 to fetch gives a syntax error,

> which
> > > is clearly wrong.

>
> No, but don't forget about relative positioning:
> fetch relative c from huge_cursor;


TODO updated:

* Change LIMIT/OFFSET and FETCH/MOVE to use int8

--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:07 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com