pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: how to add more than 1600 columns in a table?
Date: Wed, 24 Apr 2019 22:18:49 +0200
Message-ID: <1c8c5c54-afac-8a30-e100-7ee12d768d18@gmx.net> (raw)
In-Reply-To: <CAEjudX7ZtdVFAENPQUWVMe741N0me0Op24GHE4ibPdm--hJHvw@mail.gmail.com>
References: <CAEjudX7ZtdVFAENPQUWVMe741N0me0Op24GHE4ibPdm--hJHvw@mail.gmail.com>

pabloa98 schrieb am 24.04.2019 um 22:17:
> 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.

What about using an array?







view thread (20+ messages)  latest in thread

Message-ID: <1c8c5c54-afac-8a30-e100-7ee12d768d18@gmx.net>
Permalink:  ../1c8c5c54-afac-8a30-e100-7ee12d768d18@gmx.net/
Also on:    postgresql.org/message-id/1c8c5c54-afac-8a30-e100-7ee12d768d18@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: how to add more than 1600 columns in a table?
  In-Reply-To: <1c8c5c54-afac-8a30-e100-7ee12d768d18@gmx.net>
  References: <CAEjudX7ZtdVFAENPQUWVMe741N0me0Op24GHE4ibPdm--hJHvw@mail.gmail.com> <1c8c5c54-afac-8a30-e100-7ee12d768d18@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox