From: | Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Greg Sabino Mullane <htamfids(at)gmail(dot)com> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: "reverse" (?) UPSERT -- how to ? |
Date: | 2024-02-17 18:20:56 |
Message-ID: | ZdD5CC-6ljcCPoGe@hermes.hilbert.loc |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Am Sat, Feb 17, 2024 at 08:55:57AM -0800 schrieb Adrian Klaver:
> >Dear list members,
> >
>
> >So, is this doable within one SQL statement (short of
> >creating and running the abovementioned function in
> >one go ;-) ?
>
> Don't know what version of Postgres you are on, assuming 15+ then maybe?:
Ah, sorry, I omitted that detail :(
Release target for new installs is current Debian Stable, IOW
Bookworm, which has PG 15.
postgresql:
Installiert: 15+248
Installationskandidat: 15+248
Versionstabelle:
16+257 500
500 https://deb.debian.org/debian testing/main i386 Packages
*** 15+248 990
990 https://deb.debian.org/debian bookworm/main i386 Packages
100 /var/lib/dpkg/status
However, legacy deployments may run, say PG 13,
root(at)hermes:~/bin# rmadison postgresql
postgresql | 11+200+deb10u5 | oldoldstable | all
postgresql | 13+225+deb11u1 | oldstable | all
postgresql | 15+248 | stable | all
postgresql | 16+257 | testing | all
postgresql | 16+257 | unstable | all
so ideally it would work on that, too. However, it does not
seem too much to ask to *upgrade* GNUmed database servers to
Debian *Stable* if on plans on running the next,
as-yet-unreleased version ;-)
> MERGE
>
> https://www.postgresql.org/docs/current/sql-merge.html
:-) I knew I missed something. As Greg also pointed out
that is what I need.
Thanks !
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
From | Date | Subject | |
---|---|---|---|
Next Message | Karsten Hilbert | 2024-02-17 18:22:53 | Re: "reverse" (?) UPSERT -- how to ? |
Previous Message | Adrian Klaver | 2024-02-17 17:56:11 | Re: Version 6 binaries for RHEL 7 |