pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Andrus <kobruleht2@hot.ee>
To: pgsql-general@postgresql.org
Subject: Re: Duplicate key error
Date: Wed, 3 Mar 2021 08:16:06 -0800
Message-ID: <c22a9fa0-9f3a-8b68-c1d4-a430cf7286bc@aklaver.com> (raw)
In-Reply-To: <97577cda-b3fa-4edb-1c8a-2b39afad65c6@hot.ee>
References: <a8656d4f-d692-ffae-077e-304f348e25bf@hot.ee>
	<5b68b4b3-b957-5009-cf3e-4bbc9dcbd0d9@aklaver.com>
	<97577cda-b3fa-4edb-1c8a-2b39afad65c6@hot.ee>

On 3/3/21 8:08 AM, Andrus wrote:
> Hi!
> 
>> There is no other process inserting  to this table?
>>
> There may be other processes in this server trying to insert same 
> primary key value (server name).

And if that name already exists there would be a duplicate key error.

> 
> Last inserted row data should remain.

I'm not understanding the above.

> 
> Andrus.
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (22+ messages)  latest in thread

Message-ID: <c22a9fa0-9f3a-8b68-c1d4-a430cf7286bc@aklaver.com>
Permalink:  ../c22a9fa0-9f3a-8b68-c1d4-a430cf7286bc@aklaver.com/
Also on:    postgresql.org/message-id/c22a9fa0-9f3a-8b68-c1d4-a430cf7286bc@aklaver.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 using the --to and --cc options:
  reply via email

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, kobruleht2@hot.ee
  Subject: Re: Duplicate key error
  In-Reply-To: <c22a9fa0-9f3a-8b68-c1d4-a430cf7286bc@aklaver.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