Re: Upsert error "column reference is ambiguous" - Mailing list pgsql-general

From Christophe Pettus
Subject Re: Upsert error "column reference is ambiguous"
Date
Msg-id B9138622-2F17-4F70-B397-11176948FB2C@thebuild.com
Whole thread Raw
In response to Re: Upsert error "column reference is ambiguous"  (Christophe Pettus <xof@thebuild.com>)
List pgsql-general

> On Apr 28, 2025, at 15:58, Christophe Pettus <xof@thebuild.com> wrote:
> It does require knowing which of the VALUES is the key value being inserted (pseudocode syntax above) [...]

The instant after I hit send, I realized that information is available to the function by lining up the $names and
$valuesarray, since the name of the key column is passed in. 


pgsql-general by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: Upsert error "column reference is ambiguous"
Next
From: Laurenz Albe
Date:
Subject: Re: Upsert error "column reference is ambiguous"