how to add more than 1600 columns in a table?

From: pabloa98 <pabloa98(at)gmail(dot)com>
To: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: how to add more than 1600 columns in a table?
Date: 2019-04-24 20:17:17
Message-ID: CAEjudX7ZtdVFAENPQUWVMe741N0me0Op24GHE4ibPdm--hJHvw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

Sadly today we hit the 1600 columns limit of Postgresql 11.

How could we add more columns?

Note: Tables are OK. We truly have 2400 columns now. Each column represents
a value in a matrix.

We have millions of rows so I would prefer not to transpose each row to (x,
y, column_value) triplets because it will make all our code more difficult
of what it is.

Any help, very appreciated.

Pablo

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2019-04-24 20:18:49 Re: how to add more than 1600 columns in a table?
Previous Message Adrian Klaver 2019-04-24 19:59:04 Re: Postgres Security Patches Question