X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 947D811F65D7 for ; Wed, 29 Mar 2006 13:05:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62365-08 for ; Wed, 29 Mar 2006 13:05:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from perseverance.encs.concordia.ca (perseverance-96.encs.concordia.ca [132.205.96.94]) by postgresql.org (Postfix) with ESMTP id C0AD211F65F2 for ; Wed, 29 Mar 2006 13:05:46 -0400 (AST) Received: from [132.205.47.205] (IDENT:emilu@curacao.encs.concordia.ca [132.205.47.205]) by perseverance.encs.concordia.ca (8.13.6/8.13.6) with ESMTP id k2TH5j8a000681 for ; Wed, 29 Mar 2006 12:05:45 -0500 Message-ID: <442ABE69.4030703@encs.concordia.ca> Date: Wed, 29 Mar 2006 12:05:45 -0500 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Getting more information about errorcodes such as when these error1 happen Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.43 on perseverance.encs.concordia.ca at 2006/03/29 12:05:45 EST X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.134 required=5 tests=[AWL=0.134] X-Spam-Score: 0.134 X-Spam-Level: X-Archive-Number: 200603/455 X-Sequence-Number: 24801 Good morning, In my plpgsql functions I use "exception when..." to catch possible exceptions of my data. I found postgresql error code track functions are very helpful. In my functions, I will not catch all error codes, but only the ones applying to my data operation . I found errorcodes info here: http://www.postgresql.org/docs/8.1/static/errcodes-appendix.html But I am afraid that I could not imagine when and under what possible circumstances some errorcodes may happen just by their names such as : locator_exception, invalid_grantor, active_sql_transaction , and so on. I tried to search the online docs in order to get more info such as when will errorcode X happens. But I could not find it. Could someone tell me some links that I can find more information about these errorcodes please? Thanks alot, Ying