pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Allan Kamau <kamauallan@yahoo.com>
To: Benjamin Krajmalnik <kraj@illumen.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Error inserting row on unique key
Date: Thu, 20 Apr 2006 14:38:29 -0700 (PDT)
Message-ID: <20060420213829.49332.qmail@web53510.mail.yahoo.com> (raw)
In-Reply-To: <26407.1145556088@sss.pgh.pa.us>

Benjamin,
Are you sure the sequence is the only source of the
values of the primary key field of all records in this
table, that no records may have been inserted using
primary key field values generated from sources other
than the sequence.

Allan.

--- Tom Lane <tgl@sss.pgh.pa.us> wrote:

> "Benjamin Krajmalnik" <kraj@illumen.com> writes:
> > I have a large table which uses a sequence for
> column which is defined as the primary key.
> > Our systems is a real time data acquisition
> system, so we have "insert" statements going through
> it wrapped inside stored procedure.
> 
> > Every once in a while I get an inserio error on a
> violation of a unique constraint on the primary key.
> 
> Let's see that stored procedure ...
> 
> 			regards, tom lane
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please
> send an appropriate
>        subscribe-nomail command to
> majordomo@postgresql.org so that your
>        message can get through to the mailing list
> cleanly
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



view thread (4+ messages)  latest in thread

Message-ID: <20060420213829.49332.qmail@web53510.mail.yahoo.com>
Permalink:  ../20060420213829.49332.qmail@web53510.mail.yahoo.com/
Also on:    postgresql.org/message-id/20060420213829.49332.qmail@web53510.mail.yahoo.com

 · 

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-admin@postgresql.org
  Cc: kamauallan@yahoo.com, kraj@illumen.com
  Subject: Re: Error inserting row on unique key
  In-Reply-To: <20060420213829.49332.qmail@web53510.mail.yahoo.com>
  References: <26407.1145556088@sss.pgh.pa.us> <20060420213829.49332.qmail@web53510.mail.yahoo.com>

* 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