pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Michael Lewis <mlewis@entrata.com>
Cc: Jenda Krynicky <jenda@krynicky.cz>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: INSERT ... ON CONFLICT doesn't work
Date: Wed, 1 Dec 2021 21:22:29 -0800
Message-ID: <ce68ab17-911b-02db-8599-6fcb68fb7209@aklaver.com> (raw)
In-Reply-To: <CAHOFxGpM47Bbh6fCwkna8R-SY24HAtysWZQ+csFVfZHG7WZE0Q@mail.gmail.com>
References: <61A7CB18.20091.3401B246@Jenda.Krynicky.cz>
	<e096c99b-75ec-7507-cd6b-c446f2c4b745@aklaver.com>
	<61A7D076.6178.3416A928@Jenda.Krynicky.cz>
	<26be475c-fc7f-92f1-42ac-acf8b1ed3716@aklaver.com>
	<f259bed5-f839-a026-b950-8b4fdee58985@aklaver.com>
	<CAHOFxGpM47Bbh6fCwkna8R-SY24HAtysWZQ+csFVfZHG7WZE0Q@mail.gmail.com>

On 12/1/21 20:20, Michael Lewis wrote:
> Perhaps I missed something, but why all this effort to reference the 
> column and not just reference IX_Lockers_Uuid for the on conflict clause?

Two reasons:

1) The OP thought that ON CONFLICT could only reference a column.

2) Explaining why the error occurred in the first place, which is down 
to variable/column name ambiguity.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (17+ messages)

Message-ID: <ce68ab17-911b-02db-8599-6fcb68fb7209@aklaver.com>
Permalink:  ../ce68ab17-911b-02db-8599-6fcb68fb7209@aklaver.com/
Also on:    postgresql.org/message-id/ce68ab17-911b-02db-8599-6fcb68fb7209@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 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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, mlewis@entrata.com, jenda@krynicky.cz
  Subject: Re: INSERT ... ON CONFLICT doesn't work
  In-Reply-To: <ce68ab17-911b-02db-8599-6fcb68fb7209@aklaver.com>
  References: <61A7CB18.20091.3401B246@Jenda.Krynicky.cz> <e096c99b-75ec-7507-cd6b-c446f2c4b745@aklaver.com> <61A7D076.6178.3416A928@Jenda.Krynicky.cz> <26be475c-fc7f-92f1-42ac-acf8b1ed3716@aklaver.com> <f259bed5-f839-a026-b950-8b4fdee58985@aklaver.com> <CAHOFxGpM47Bbh6fCwkna8R-SY24HAtysWZQ+csFVfZHG7WZE0Q@mail.gmail.com> <ce68ab17-911b-02db-8599-6fcb68fb7209@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