From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Lorusso Domenico <domenico(dot)l76(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: merge with view |
Date: | 2024-03-11 21:20:16 |
Message-ID: | 18e5f2bb-ef4c-432b-9ad9-0514b7abb832@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 3/11/24 13:25, Lorusso Domenico wrote:
> Hello guys,
> Merge isn't work on view; anyone know why?
> I mean, merge could be performed in many way, but essentially is:
>
> * join sets
> * if matched update or delete
> * if not matched insert
>
> it doesn't seem to be relevant if set is a table or a view.
>
> Moreover also "insert + on conflict" doesn't work with view (in my case
> is a view on a single table with an instead of trigger)
Reply with:
Postgres version
View definition
Example Merge query.
Definition of doesn't work, with actual complete error message.
>
> There is a way to workaround to this issue?
>
> --
> Domenico L.
>
> per stupire mezz'ora basta un libro di storia,
> io cercai di imparare la Treccani a memoria... [F.d.A.]
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Avi Weinberg | 2024-03-12 07:21:10 | RE: [External] Re: walsender RAM increases by 500 MB while data is 80 MB |
Previous Message | Lorusso Domenico | 2024-03-11 20:25:14 | merge with view |