X-Original-To: pgsql-hackers@postgresql.org Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by postgresql.org (Postfix) with ESMTP id B40CD475A71 for ; Thu, 13 Mar 2003 21:48:28 -0500 (EST) Received: from pppth08-155.ght.iadfw.net (pppth08-155.ght.iadfw.net [207.136.52.29]) (authenticated bits=0) by lerami.lerctr.org (8.12.8/8.12.8/20030225) with ESMTP id h2E2mMfS021707; Thu, 13 Mar 2003 20:48:24 -0600 (CST) Date: Thu, 13 Mar 2003 20:48:18 -0600 From: Larry Rosenman To: Neil Conway , Christopher Kings-Lynne Cc: PostgreSQL Hackers , Tom Lane Subject: Re: Upgrading the backend's error-message infrastructure Message-ID: <47640000.1047610098@lerlaptop.lerctr.org> In-Reply-To: <1047609869.357.1856.camel@tokyo> References: <9168.1047588660@sss.pgh.pa.us> <0cfd01c2e9cf$c16ea070$6500a8c0@fhp.internal> <1047609869.357.1856.camel@tokyo> X-Mailer: Mulberry/3.0.2 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Archive-Number: 200303/592 X-Sequence-Number: 36838 --On Thursday, March 13, 2003 21:44:29 -0500 Neil Conway wrote: > On Thu, 2003-03-13 at 21:16, Christopher Kings-Lynne wrote: >> Would it be possible to do a command line app? >> >> bash$ pg_error 1200D >> Severity: ERROR >> Message: Division by zero >> Detail: >> Hint: Modify statement to prevent zeros appearing in denominators. > > Is there any benefit to having this over just including an index of > error codes in the documentation? yes, it makes it script-able, and probably more up to date than documentation.... Especially if it's in the DB or from the source code. LER > > Cheers, > > Neil > > -- > Neil Conway || PGP Key ID: DB3C29FC > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749