Re: doing %-expansion in plpgsql RAISE USING

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: doing %-expansion in plpgsql RAISE USING
Date: 2009-08-04 14:16:45
Message-ID: 20090804141645.GB6494@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-08-04 14:18:11 Re: async notification patch for dblink
Previous Message Magnus Hagander 2009-08-04 14:16:38 Re: Proposal: More portable way to support 64bit platforms