merge with view

From: Lorusso Domenico <domenico(dot)l76(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: merge with view
Date: 2024-03-11 20:25:14
Message-ID: CAJMpnG615RTin+dEmaiya4ieTw2BfgoDrqZMA-oRCY9FRfdnFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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)

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.]

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-03-11 21:20:16 Re: merge with view
Previous Message Tefft, Michael J 2024-03-11 17:49:43 RE: alter table xxx alter column yyy set (n_distinct=nnnn );