Re: Duplicate key error

From: Andrus <kobruleht2(at)hot(dot)ee>
To: Michael Lewis <mlewis(at)entrata(dot)com>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Duplicate key error
Date: 2021-03-03 20:02:08
Message-ID: 1488f144-0bf9-39c8-544f-fdb0f47acd21@hot.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

>It sounds like this should be re-written as 'insert on conflict do
update' statement.

It should work in Postgres 9 also. on confilct is not available in
postgres 9.

This code does not insert duplicate key valuse ? Why it throws error ?

You can create testcase to run this code from multiple processes to try
reproduce the error.

Andrus.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2021-03-03 20:19:37 Re: Duplicate key error
Previous Message Andrus 2021-03-03 19:59:29 Re: Duplicate key error