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 EAE83475A71 for ; Thu, 13 Mar 2003 22:01:12 -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 h2E316fS022472; Thu, 13 Mar 2003 21:01:07 -0600 (CST) Date: Thu, 13 Mar 2003 21:01:01 -0600 From: Larry Rosenman To: Neil Conway Cc: Christopher Kings-Lynne , PostgreSQL Hackers , Tom Lane Subject: Re: Upgrading the backend's error-message infrastructure Message-ID: <59370000.1047610861@lerlaptop.lerctr.org> In-Reply-To: <1047610701.359.1861.camel@tokyo> References: <9168.1047588660@sss.pgh.pa.us> <0cfd01c2e9cf$c16ea070$6500a8c0@fhp.internal> <1047609869.357.1856.camel@tokyo> <47640000.1047610098@lerlaptop.lerctr.org> <1047610701.359.1861.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/598 X-Sequence-Number: 36844 --On Thursday, March 13, 2003 21:58:21 -0500 Neil Conway wrote: > On Thu, 2003-03-13 at 21:48, Larry Rosenman wrote: >> > Is there any benefit to having this over just including an index of >> > error codes in the documentation? > >> yes, it makes it script-able > > What need would you have for it to be script-able? The backend will > return the error text whenever it returns an error code -- in what > situation would a client app have the error code but not the error > message as well? PHP, returning just the code to a user, and wanting to, later, return the full text in a log-analysis, just as one example. > >> and probably more up to date than documentation.... > > The way to fix that is to keep the documentation up to date, not invent > pseudo-documentation. machine readable Error messages and Codes are ALWAYS a good thing, IMNSHO. > > Cheers, > > Neil > > -- > Neil Conway || PGP Key ID: DB3C29FC > > -- 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