pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: Rob Sargent <robjsargent@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: "reverse" (?) UPSERT -- how to ?
Date: Sat, 17 Feb 2024 19:22:53 +0100
Message-ID: <ZdD5fVluz_t2_fyk@hermes.hilbert.loc> (raw)
In-Reply-To: <5F927293-F62E-41C4-A62B-AB184E91B0F1@gmail.com>
References: <ZdDPpWxB6IH_Dx1b@hermes.hilbert.loc>
	<5F927293-F62E-41C4-A62B-AB184E91B0F1@gmail.com>

Am Sat, Feb 17, 2024 at 09:33:11AM -0700 schrieb Rob Sargent:

> > So, is this doable within one SQL statement (short of
> > creating and running the abovementioned function in
> > one go ;-) ?
> >
>
> Perhaps your pk_detail can be defined as generated always identity?

Rob, I'm sure there's something to be learned from that
suggestion the significance of which I don't grasp yet. Would
you mind expanding a bit ?

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B





view thread (8+ messages)  latest in thread

Message-ID: <ZdD5fVluz_t2_fyk@hermes.hilbert.loc>
Permalink:  ../ZdD5fVluz_t2_fyk@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/ZdD5fVluz_t2_fyk@hermes.hilbert.loc

 · 

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: Karsten.Hilbert@gmx.net, robjsargent@gmail.com
  Subject: Re: "reverse" (?) UPSERT -- how to ?
  In-Reply-To: <ZdD5fVluz_t2_fyk@hermes.hilbert.loc>
  References: <ZdDPpWxB6IH_Dx1b@hermes.hilbert.loc> <5F927293-F62E-41C4-A62B-AB184E91B0F1@gmail.com> <ZdD5fVluz_t2_fyk@hermes.hilbert.loc>

* 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