Re: Numbering rows

From: Mark Morgan Lloyd <markMLl(dot)pgsql-general(at)telemetry(dot)co(dot)uk>
To: pgsql-general(at)PostgreSQL(dot)org
Subject: Re: Numbering rows
Date: 2008-10-15 21:10:57
Message-ID: gd5m93$d1a$1@pye-srv-01.telemetry.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

D. Dante Lorenso wrote:

> PERL can remember variables in your session. Here's a function I wrote
> that sets a "global" variable in PL/PERL:

Perl can do anything- that's cheating :-)

Actually, I use Perl heavily but the advantage of being able to do the
sort of analysis being discussed in a single query is that the query can
be easily shipped with the results as a description of the method.
Having to set up ad-hoc extra functions (in addition to those that are
normally in the workflow) can be problematic, particularly if a
recipient of the query only has restricted access.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2008-10-15 21:16:26 Re: Get PG version using JDBC?
Previous Message Richard Broersma 2008-10-15 21:05:05 Re: Get PG version using JDBC?