Re: Bug with sequence ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Christian Meunier" <vchris(at)club-internet(dot)fr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug with sequence ?
Date: 2002-02-04 16:21:09
Message-ID: 6397.1012839669@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Christian Meunier" <vchris(at)club-internet(dot)fr> writes:
> When i insert a new tuple i use: insert into test values(nextval('test_num_=
> seq'),......);
> When i look at my postgres log, time to time i see:
> 2002-02-04 08:11:47 ERROR: Cannot insert a duplicate key into unique index=
> test_pkey

You sure that's the *only* way that the num column gets inserted or
updated?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message bpalmer 2002-02-04 17:19:46 Re: v7.2 rolled last night ...
Previous Message Christian Meunier 2002-02-04 16:06:43 Bug with sequence ?