From: | merlyn(at)stonehenge(dot)com (Randal L(dot) Schwartz) |
---|---|
To: | hf1122x(at)protecting(dot)net |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: getting the ranks of items |
Date: | 2005-05-04 11:50:54 |
Message-ID: | 86u0ljp5up.fsf@blue.stonehenge.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>>>>> "Harald" == Harald Fuchs <use_reply_to(at)protecting(dot)net> writes:
Harald> Using a temporary sequence for that would avoid naming conflicts.
>> P.S. I'm sure you can wrap it in plperl stored procedure :)
Well, yes. I was (falsely?) recalling that there was a pure SQL way
to do this though.
And the point of doing it as part of the (sub)query is that I was then
going to do a further join and select on this.
Harald> Yes, prepending the ranking column in the application would be
Harald> more efficient. I wonder whether Randall knows Perl? ;-)
If not, I'm sure I could dig up a couple of books to learn it. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn(at)stonehenge(dot)com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
From | Date | Subject | |
---|---|---|---|
Next Message | Hegyvari Krisztian | 2005-05-04 11:55:35 | Re: Rekall for Debian ? |
Previous Message | Richard Huxton | 2005-05-04 11:43:17 | Re: remote tcp connection problem PG 8.0.1 |