Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 74DA7632A6C for ; Mon, 9 Aug 2010 13:36:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 55915-07; Mon, 9 Aug 2010 16:36:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 9B5CA632872; Mon, 9 Aug 2010 13:36:40 -0300 (ADT) Received: by pvg2 with SMTP id 2so808324pvg.19 for ; Mon, 09 Aug 2010 09:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=KgCNGVHzkEhfaTQBwGYixPLZMS9KLcs3eKmq+eaJJ9E=; b=JwqVXwqmsI9afAz68nnPVPnoE+nriXrER2+mmIvkdPOOw5ZPR6vF1WYXJKblMhXWHD 4NTpvXj19KuO+TusaMDjqPqUnJXi2KBOLJXjatyxlvwYbEF0x9ZGYdeODmYRZ/XoEQeq sm6EoapVozrkz9pAHFlCWOiIozzQQFLuDK3hY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=kea4ZJOE3PF7Pr5qDCrcFtPKyIH/E0PW0DYsr9pVywifGrTzmmzCzwPlgdKYsM2JTp bnKZNzaePq0PvdJV9dCxvR14HZ4SfCki4GPx/W7SALwda+4Gl8pxGgEtrG/pKcSDmRdy t0Q6Xt6Wq1F3dDYYNcgqUZLJGIvmY76BjXF7c= Received: by 10.142.135.14 with SMTP id i14mr823570wfd.173.1281371799469; Mon, 09 Aug 2010 09:36:39 -0700 (PDT) Received: from [10.0.2.101] (p0245ed.tokyff01.ap.so-net.ne.jp [121.2.69.237]) by mx.google.com with ESMTPS id n2sm6745489wfl.13.2010.08.09.09.36.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 09 Aug 2010 09:36:37 -0700 (PDT) Message-ID: <4C602E9D.40501@gmail.com> Date: Tue, 10 Aug 2010 01:36:45 +0900 From: Satoshi Nagayasu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Robert Haas CC: pgsql-docs , Michael Meskes Subject: Re: ECPG - Some errno definitions don't match to the manual References: <4C4847D0.9030001@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/15 X-Sequence-Number: 5839 On 2010/08/09 21:27, Robert Haas wrote: >> I'm now investigating SQLCODE and SQLSTATE, and I have found >> that some of the errno definitions don't match to the manual. >> What does it mean? The manual is not up to date? > > Yeah, I think that's what it means. Perhaps you could provide a patch > for the docs? Sure, I will make a patch for this. Please wait a moment. > Another question is whether we oughn't to remove all mention of the > specific values of these constants from the documentation. That > wouldn't prevent all problems in this area, because constants can > still be added and removed, but ISTM that including the specific > numerical values here is encouraging people to depend on those values > when they probably shouldn't. Hmm, it's a difficult point. From the application programmers' viewpoint, error codes and error numbers would be an interface between their application and PostgreSQL internals. So I think (and I hope) it should be in the programmer's manual. On the other hand, from the PostgreSQL developer's viewpoint, it is hard to maintain all of documents up to date. So removing them from the manual will make maintenance easier. I found that this difference was generated by the very very old change in the code repository. And I think it would never be happen anymore, because nowadays PostgreSQL developers, especially code reviewers, always require "document updates/patches" for any patches before applying. (as all you know :) I agree with that taking care about both code and documents is not so easy, but the current review/development process seems to be appropriate. Any comments or suggestions? -- NAGAYASU Satoshi