Re: INSERT ON CONFLICT of "wide" table: target lists can have at most 1664 entries

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: INSERT ON CONFLICT of "wide" table: target lists can have at most 1664 entries
Date: 2016-12-04 20:05:25
Message-ID: 19399.1480881925@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Justin Pryzby <pryzby(at)telsasoft(dot)com> writes:
> I'm implementing unique indices to allow "upsert" (and pg_repack and..), but
> running into a problem when the table has >830 columns (we have some tables
> which are at the 1600 column limit, and have previously worked around that
> limit using arrays or multiple tables).

Yeah, this is a bug, but fortunately the fix is pretty trivial. See

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=da05d0ebc637a84ba41a172b32552557ebad199f

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-12-04 20:25:24 Re: Postgres and LibreOffice's 'Base'
Previous Message Rich Shepard 2016-12-04 20:01:44 Re: Postgres and LibreOffice's 'Base'