pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Removing our datasource/pooling implementation.
Date: Fri, 14 Jan 2005 00:26:44 -0500
Message-ID: <19942.1105680404@sss.pgh.pa.us> (raw)
In-Reply-To: <41E71F87.90400@opencloud.com>
References: <Pine.BSO.4.56.0501052340370.3195@leary.csoft.net>
	<41DDAE01.7030405@opencloud.com>
	<Pine.BSO.4.56.0501102231430.25062@leary.csoft.net>
	<41E44DD6.2080809@opencloud.com>
	<Pine.BSO.4.56.0501111743320.28776@leary.csoft.net>
	<41E464C4.6060904@opencloud.com>
	<Pine.BSO.4.56.0501111855590.32720@leary.csoft.net>
	<41E71F87.90400@opencloud.com>

Oliver Jowett <oliver@opencloud.com> 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



view thread (13+ messages)  latest in thread

Message-ID: <19942.1105680404@sss.pgh.pa.us>
Permalink:  ../19942.1105680404@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19942.1105680404@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, oliver@opencloud.com, books@ejurka.com
  Subject: Re: Removing our datasource/pooling implementation.
  In-Reply-To: <19942.1105680404@sss.pgh.pa.us>
  References: <Pine.BSO.4.56.0501052340370.3195@leary.csoft.net> <41DDAE01.7030405@opencloud.com> <Pine.BSO.4.56.0501102231430.25062@leary.csoft.net> <41E44DD6.2080809@opencloud.com> <Pine.BSO.4.56.0501111743320.28776@leary.csoft.net> <41E464C4.6060904@opencloud.com> <Pine.BSO.4.56.0501111855590.32720@leary.csoft.net> <41E71F87.90400@opencloud.com> <19942.1105680404@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox