EDIT:
DO UPDATE SET Anlage=excluded.Anlage, Zeichnung=excluded.Zeichnung;
what does the excluded.XYZ mean ? could i also use
DO UPDATE SET Anlage=:Anlage, Zeichnung=:Zeichnung;
"excluded" --> it would be the DISCARDED (in other words: the NEW) Value due to the conflict,
and in a ON CONFLICT you MUST use "excluded"EDIT Just saw that you would use the Parameters. Yes, you could, but just ... DON'T.... with the "excluded" you already have the Value, so there is no need
btw: Going by your description by "not normalized" i'm smelling something here (and no... it's not my unwashed socks).
If you can post your structure and some sample data, specifically explaining what's a legal entry (INSERT works), and what's an entry you'd like the UPDATE to execute.
I have an idea, but i'd need to see structure and data