X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2D661D1B181 for ; Tue, 6 Jul 2004 14:26:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69656-04 for ; Tue, 6 Jul 2004 17:26:29 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 1CCFCD1B19A for ; Tue, 6 Jul 2004 14:26:26 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i66HQHW25276; Tue, 6 Jul 2004 13:26:17 -0400 (EDT) From: Bruce Momjian Message-Id: <200407061726.i66HQHW25276@candle.pha.pa.us> Subject: Re: Why no exprs in format string to RAISE In-Reply-To: <40E93CAC.3000106@archonet.com> To: Richard Huxton Date: Tue, 6 Jul 2004 13:26:17 -0400 (EDT) Cc: Markus Bertheau , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/27 X-Sequence-Number: 18279 Richard Huxton wrote: > Markus Bertheau wrote: > > Hi, > > > > is there a non-implementation reason as to why there are no expressions > > allowed in the arguments to the format string to RAISE, or is that just > > not implemented yet? > > Just not done yet AFAIK. It would require some changes to the parser for > plpgsql, but nothing too extreme. Might make a good project for > someone learning more about PG's code. TODO has: o Allow PL/PgSQL's RAISE function to take expressions -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073