From: Kris Jurka <books@ejurka.com>
To: Nico <nicohmail-postgresql@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: making a rule and know when it is violated
Date: Tue, 22 Feb 2005 11:59:38 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0502221158360.18576@leary.csoft.net> (raw)
In-Reply-To: <cvfn09$nc0$1@news.hub.org>
References: <cvcvn4$bm0$1@news.hub.org>
<Pine.BSO.4.56.0502211107470.29249@leary.csoft.net>
<cvfn09$nc0$1@news.hub.org>
On Tue, 22 Feb 2005, Nico wrote:
> What is the message returned by the sqlexception if such an index is
> violated? I searched it on google.com, but didn't find much interesting,
> probably using the wrong keywords...
You could of course take the ten seconds necessary to try it:
jurka=# create table ut (a int primary key);
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "ut_pkey"
for table "ut"
CREATE TABLE
jurka=# insert into ut values (1);
INSERT 608266 1
jurka=# insert into ut values (1);
ERROR: duplicate key violates unique constraint "ut_pkey"
Kris Jurka
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: books@ejurka.com, nicohmail-postgresql@yahoo.com
Subject: Re: making a rule and know when it is violated
In-Reply-To: <Pine.BSO.4.56.0502221158360.18576@leary.csoft.net>
References: <cvcvn4$bm0$1@news.hub.org> <Pine.BSO.4.56.0502211107470.29249@leary.csoft.net> <cvfn09$nc0$1@news.hub.org> <Pine.BSO.4.56.0502221158360.18576@leary.csoft.net>
* 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