Re: increment row number function question

From: Matthew Peter <survivedsushi(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: increment row number function question
Date: 2006-10-07 23:47:00
Message-ID: 20061007234700.99125.qmail@web35203.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for the reply.
Even if such a function existed, it would almost certainly not do what
you want in this query. Per SQL spec, the SELECT target list is
logically supposed to be evaluated before the ORDER BY and LIMIT steps, which means you'd get numbers associated with the physical ordering of the rows not their some_col ordering.
Shucks. I wanted to return a set with an ordered iterator determined by the ORDER BY. Could that be done?
regards, tom lane

Thanks again.


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2006-10-08 00:18:25 Re: increment row number function question
Previous Message Mario Soto 2006-10-07 23:29:14 please how to unsuscribe to list