From: Stef Telford <stef@chronozon.artofdns.com>
To: pgsql-sql@postgresql.org
Subject: Trigger Function and Html Output
Date: Sun, 1 Apr 2001 03:50:20 -0400
Message-ID: <01040103502000.12630@devil.hades> (raw)
Hello,
i find i must turn once again to the list for help, in what
is probably another silly request.
I have a view (made of 4 tables) and now find that users
need to have the view different based on some criteria from the
database. its. well. its rather icky to go into. but i can figure that
part out myself.
The long and short of it is this, I would like the view to
return a html table. I understand that I can do this via a function
and a trigger on select, massage the data, and then construct
each line to simply be returned to the perl program. The only
problem comes with, as far as i am aware, a trigger returns and
is processed on a 'per line' basis for a select, so how would i
get the view's column titles output for the table header ?
I ideally want to make as much of the perl construction
of the table from the database, this includes the head of the table,
all and each row, and then of course closing the table 'off'. I know
this sounds like a strange way to do things, but i think this is the
best way to go.
many thanks
stefs
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: stef@chronozon.artofdns.com
Subject: Re: Trigger Function and Html Output
In-Reply-To: <01040103502000.12630@devil.hades>
References: <01040103502000.12630@devil.hades>
* 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