Re: Trigger Function and Html Output

Поиск
Список
Период
Сортировка
От Christopher Masto
Тема Re: Trigger Function and Html Output
Дата
Msg-id 20010401231718.A1358@netmonger.net
обсуждение исходный текст
Ответ на Re: Trigger Function and Html Output  (Stef Telford <stef@chronozon.artofdns.com>)
Список pgsql-sql
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/


В списке pgsql-sql по дате отправления:

Предыдущее
От: RbrtBrn3@aol.com
Дата:
Сообщение: Can anyone explain how this works?
Следующее
От: Louis-David Mitterrand
Дата:
Сообщение: Re: Maybe a Bug, maybe bad SQL