From: | "Marc Mamin" <M(dot)Mamin(at)intershop(dot)de> |
---|---|
To: | "Guy Rouillier" <guyr-ml1(at)burntmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Enumerating a row set |
Date: | 2009-03-27 10:02:01 |
Message-ID: | C4DAC901169B624F933534A26ED7DF31010A5096@JENMAIL01.ad.intershop.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello,
There is also a funny approach here with custom operators and variables
that could be adapted to build a rownum functioanlity in functions
(look for Vladimir)
http://archives.postgresql.org/pgsql-hackers/2008-11/msg00048.php
not very clean, but apparently fast ....
Marc Mamin
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Guy Rouillier
Sent: Friday, March 27, 2009 2:54 AM
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Enumerating a row set
On Thu, Mar 26, 2009 at 06:42:45PM -0400, George Sakkis wrote:
> Hi all,
>
> Is there a function similiar to Python's enumerate() [1] ? Searching
> the docs didn't reveal any relevant builtin but I hope it's doable in
> pgsql.
I found this via Google:
http://www.depesz.com/index.php/2007/08/17/rownum-anyone-cumulative-sum-
in-one-query/
--
Guy Rouillier
--
Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org) To
make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
From | Date | Subject | |
---|---|---|---|
Next Message | George Sakkis | 2009-03-27 12:21:55 | Re: Enumerating a row set |
Previous Message | Hannes Dorbath | 2009-03-27 09:54:09 | PITRTools: Bring up warm standby -> unexpected pageaddr |