| From: | Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Cc: | Greg Sabino Mullane <htamfids(at)gmail(dot)com> |
| Subject: | Re: "reverse" (?) UPSERT -- how to ? |
| Date: | 2024-02-17 18:29:32 |
| Message-ID: | ZdD7DMe_vb0FCOcn@hermes.hilbert.loc |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Am Sat, Feb 17, 2024 at 07:25:11PM +0100 schrieb Karsten Hilbert:
> +1 except that I've got use for both parts of the UNION on
> their own (they are both views themselves involving a bunch
> of joins with yet other tables, 4 or 5 each or so ;-)
Just for kicks, attached find the SQL change script ...
Using a LEFT JOIN would get unwieldy, fast, I guess.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
| Attachment | Content-Type | Size |
|---|---|---|
| v23-clin-v_intakes_with_regimens.sql | application/sql | 6.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kerr Livingstone | 2024-02-17 19:55:20 | Re: Version 6 binaries for RHEL 7 |
| Previous Message | Karsten Hilbert | 2024-02-17 18:25:11 | Re: "reverse" (?) UPSERT -- how to ? |