pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreak@officenet.no>
To: pgsql-sql@postgresql.org
Subject: Re: workaround for missing ROWNUM feature with the help of GUC variables
Date: Wed, 04 Aug 2010 22:07:54 +0200
Message-ID: <4C59C89A.7070401@officenet.no> (raw)
In-Reply-To: <C4DAC901169B624F933534A26ED7DF31034BB74D@JENMAIL01.ad.intershop.net>
References: <C4DAC901169B624F933534A26ED7DF31034BB74D@JENMAIL01.ad.intershop.net>

On 08/04/2010 12:35 PM, Marc Mamin wrote:
>
> Hello,
>
> here my two pence on this recurring thema.
>
> (just a workaround)
>
>

I don't understand what you mean by missing ROWNUM feature, PG got this 
with windows-functions in 8.4:
http://www.postgresql.org/docs/8.4/interactive/functions-window.html

Example:
select username, row_number() over() from my_user_table;
   username   | row_number
-------------+------------
  admin       |          1
  everyone    |          2

-- 
Andreas Joseph Krogh<andreak@officenet.no>
Senior Software Developer / CTO
------------------------+---------------------------------------------+
OfficeNet AS            | The most difficult thing in the world is to |
Rosenholmveien 25       | know how to do a thing and to watch         |
1414 TrollÄsen          | somebody else doing it wrong, without       |
NORWAY                  | comment.                                    |
                         |                                             |
Tlf:    +47 24 15 38 90 |                                             |
Fax:    +47 24 15 38 91 |                                             |
Mobile: +47 909  56 963 |                                             |
------------------------+---------------------------------------------+

view thread (3+ messages)  latest in thread

Message-ID: <4C59C89A.7070401@officenet.no>
Permalink:  ../4C59C89A.7070401@officenet.no/
Also on:    postgresql.org/message-id/4C59C89A.7070401@officenet.no

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: andreak@officenet.no
  Subject: Re: workaround for missing ROWNUM feature with the help of GUC variables
  In-Reply-To: <4C59C89A.7070401@officenet.no>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox