Re: RAISE concatination/variables in plpgsql - Mailing list pgsql-bugs

From Tom Lane
Subject Re: RAISE concatination/variables in plpgsql
Date
Msg-id 24194.989280922@sss.pgh.pa.us
Whole thread Raw
In response to Re: RAISE concatination/variables in plpgsql  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: RAISE concatination/variables in plpgsql  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-bugs
I wrote:
>> Probably.  And 'format' is even more misleading, since it implies that
>> you write a printf-like format string, which you do not.  The output is
>> just the concatenation of the literal and the variable values.

Ugh.  Should've read the code before pontificating ;-).  The code makes
clear what is quite unclear in the docs:
        /*
         * Occurences of a single % are replaced by the next arguments
         * external representation. Double %'s are left as is so elog()
         * will also don't touch them.
         */
So "format" is appropriate, but the next sentence could use some
improvement.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: backend dies on 7.1.1 loading large datamodel.
Next
From: Bruce Momjian
Date:
Subject: Re: RAISE concatination/variables in plpgsql