X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 092DA3A19A5 for ; Fri, 14 Jan 2005 08:39:04 +0000 (GMT) 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 34313-04 for ; Fri, 14 Jan 2005 08:38:52 +0000 (GMT) Received: from www.postgresql.com (unknown [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id CBBC33A19E6 for ; Fri, 14 Jan 2005 08:37:55 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by www.postgresql.com (Postfix) with ESMTP id DDFCE73983C for ; Fri, 14 Jan 2005 05:28:03 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j0E5QiEX019943; Fri, 14 Jan 2005 00:26:45 -0500 (EST) To: Oliver Jowett Cc: Kris Jurka , pgsql-jdbc@postgresql.org Subject: Re: Removing our datasource/pooling implementation. In-reply-to: <41E71F87.90400@opencloud.com> References: <41DDAE01.7030405@opencloud.com> <41E44DD6.2080809@opencloud.com> <41E464C4.6060904@opencloud.com> <41E71F87.90400@opencloud.com> Comments: In-reply-to Oliver Jowett message dated "Fri, 14 Jan 2005 14:25:27 +1300" Date: Fri, 14 Jan 2005 00:26:44 -0500 Message-ID: <19942.1105680404@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/112 X-Sequence-Number: 11992 Oliver Jowett writes: > Some of the SQL states I assigned aren't very good matches. The main one > is that "you can't do that operation on that sort of object" type of > error is mapped to "object not in prerequisite state". Any better ideas? ERRCODE_WRONG_OBJECT_TYPE (42809) seems like a better match. The prerequisite-state error implies that you could have done that operation on that object, if it were in a more receptive mood. The 42xxx series covers pretty much anything in the what-were-you-thinking category, AFAICS. If I'd been on the committee I would have broken it down a bit more... regards, tom lane