Re: doing %-expansion in plpgsql RAISE USING - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: doing %-expansion in plpgsql RAISE USING
Date
Msg-id 20090804141645.GB6494@alvh.no-ip.org
Whole thread Raw
In response to Re: doing %-expansion in plpgsql RAISE USING  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > It seems there's no way to do %-expansion in plpgsql when one is using
> > RAISE USING:
> 
> That's intentional.  Just use string concatenation if you need a
> run-time-variable message.

Yes, I can do that, but it's really ugly and gets unmaintainable
quickly.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Proposal: More portable way to support 64bit platforms
Next
From: Tom Lane
Date:
Subject: Re: async notification patch for dblink