pltcl problem

From: Russ Brown <postgres(at)dot4dot(dot)plus(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: pltcl problem
Date: 2003-09-24 14:35:17
Message-ID: oprv0dg3fi6sifx0@relay.plus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm trying to debug a pltcl procedure (being used as a trigger), and I'm
having trouble generating useful debug output.

I'm using elog, and I want the output to contain the value of an array.
So, I'm using a command like this:

elog DEBUG "Trigger Call $vchtablename"

Trouble is, it's appearing in the error log exactly like that (including
the 'elog DEBUG' part.

If I indent the line, the spaces at the start appear in the error log also.

I've tried removing the quotes and I get the same output (minus the quotes)

I'm probably doing something wrong that pretty obvious (been staring at
the code for too long, plus this is the first time I've ever used TCL, so
it could be a very obvious mistake!). If anyone can give me a hint as to
what my error might be, that would be great.

Thanks,

--

Russell Brown

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josué Maldonado 2003-09-24 14:42:48 Is this "order by" logic right
Previous Message Tom Lane 2003-09-24 14:29:25 Re: Accessing tables from different databases