Update count mismatch - internal error

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Update count mismatch - internal error
Date: 2015-09-20 00:15:11
Message-ID: 20150920001511.GB3844@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While working on polishing remaining upsert issues I found a, afaics
unrelated, issue:

postgres[14993][1]=# CREATE TABLE mismatch(a int, b int);
CREATE TABLE
postgres[14993][1]=# UPDATE mismatch SET a = mismatch.*;
ERROR: XX000: UPDATE target count mismatch --- internal error
LOCATION: transformUpdateTargetList, analyze.c:2103

Seems to be a longer standing thing, going at least back to 9.0.

Greetings,

Andres Freund

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2015-09-20 01:17:33 Re: Update count mismatch - internal error
Previous Message Andres Freund 2015-09-20 00:11:09 Re: ON CONFLICT issues around whole row vars,