pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@boutiquenumerique.com>
To: Don Drake <dondrake@gmail.com>
To: Michael Glaesemann <grzm@myrealbox.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Determining Rank
Date: Fri, 04 Feb 2005 22:36:12 +0100
Message-ID: <opslozmmfwth1vuj@musicbox> (raw)
In-Reply-To: <6c21003b05020413186eb2d41f@mail.gmail.com>
References: <6c21003b05020319061f8bce45@mail.gmail.com>
	<c85cd173f6296106a072d1fa53042647@myrealbox.com>
	<6c21003b05020413186eb2d41f@mail.gmail.com>


> Michael,
>
> That's an excellent solution, but on my table, the explain plan sucks
> and the query time is over 3 minutes when implemented.  Is there a
> simple way to get a row_num without using a temporary sequence?
>
> Thanks for your help.
>
> -Don

	Make your query a set returning function which iterates over the query  
results and returns a number as well ?



view thread (5+ messages)

Message-ID: <opslozmmfwth1vuj@musicbox>
Permalink:  ../opslozmmfwth1vuj@musicbox/
Also on:    postgresql.org/message-id/opslozmmfwth1vuj@musicbox

 · 

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: lists@boutiquenumerique.com, dondrake@gmail.com, grzm@myrealbox.com
  Subject: Re: Determining Rank
  In-Reply-To: <opslozmmfwth1vuj@musicbox>

* 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