Re: RAISE concatination/variables in plpgsql
Bruce Momjian <pgman@candle.pha.pa.us>
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: "Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk>, "'pgsql-bugs@postgresql.org'" <pgsql-bugs@postgresql.org>
Date: 2001-05-08T00:28:58Z
Lists: pgsql-bugs
Attachments
- (unnamed) (text/plain)
OK, SGML updated. > 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 > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026