how to emit line number in a function?

From: Bricklen Anderson <BAnderson(at)PresiNET(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how to emit line number in a function?
Date: 2005-11-03 15:09:17
Message-ID: 436A281D.30506@PresiNET.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I couldn't find any useful references in the docs or archives for emitting the
line number of a plpgsql function (in a RAISE statement). I'd like to use it for
debugging some complex functions.
Does anyone have any tips on where to look, or an example of this?

Cheers,

Bricklen

--
_______________________________

This e-mail may be privileged and/or confidential, and the sender does
not waive any related rights and obligations. Any distribution, use or
copying of this e-mail or the information it contains by other than an
intended recipient is unauthorized. If you received this e-mail in
error, please advise me (by return e-mail or otherwise) immediately.
_______________________________

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Turner 2005-11-03 15:15:14 Re: SQL injection
Previous Message Reid Thompson 2005-11-03 14:33:58 Re: FOSS Reporting tools (was Oracle 10g Express - any danger for Postgres?)