From: Christopher Masto <chris@netmonger.net>
To: pgsql-sql@postgresql.org
Subject: Re: Trigger Function and Html Output
Date: Sun, 1 Apr 2001 23:17:18 -0400
Message-ID: <20010401231718.A1358@netmonger.net> (raw)
In-Reply-To: <01040113214300.13105@devil.hades>
References: <01040103502000.12630@devil.hades>
<3AC758D6.41FDD33C@archonet.com>
<01040113214300.13105@devil.hades>
On Sun, Apr 01, 2001 at 01:21:43PM -0400, Stef Telford wrote:
> maybe i am naive in thinking this way, but surely the a database function
> formatting the returned string must be quicker then perl. (speaking
> generically of course, i conceed that there are times when the reverse
> is true)
Formatting data is not always so simple. You definately need to
encode entities and such, and doing this from SQL could get to be a
pain. Particularly when you decide that now you want this column to
contain a link to some other page, or that rows should alternate
colors, or whatever.
Doing some of the work in the database is generally a good thing, but
I think in this case it's just a hell of a lot easier in Perl because
it's a more powerful language.
--
Christopher Masto Senior Network Monkey NetMonger Communications
chris@netmonger.net info@netmonger.net http://www.netmonger.net
Free yourself, free your machine, free the daemon -- http://www.freebsd.org/
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: chris@netmonger.net
Subject: Re: Trigger Function and Html Output
In-Reply-To: <20010401231718.A1358@netmonger.net>
References: <01040103502000.12630@devil.hades> <3AC758D6.41FDD33C@archonet.com> <01040113214300.13105@devil.hades> <20010401231718.A1358@netmonger.net>
* 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