From: Adrian Klaver <adrian.klaver@aklaver.com>
To: pabloa98 <pabloa98@gmail.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: how to add more than 1600 columns in a table?
Date: Wed, 24 Apr 2019 13:22:34 -0700
Message-ID: <68c9b875-e0d8-168d-a587-e85fb9e3f5e5@aklaver.com> (raw)
In-Reply-To: <CAEjudX7ZtdVFAENPQUWVMe741N0me0Op24GHE4ibPdm--hJHvw@mail.gmail.com>
References: <CAEjudX7ZtdVFAENPQUWVMe741N0me0Op24GHE4ibPdm--hJHvw@mail.gmail.com>
On 4/24/19 1:17 PM, pabloa98 wrote:
> 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.
Not sure how hit 1600 column limit = having 2400 columns?
Off hand I would say you are using the wrong tool for the job. More
information on what you trying to achieve might help get you to the
correct tool.
>
> 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
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, pabloa98@gmail.com
Subject: Re: how to add more than 1600 columns in a table?
In-Reply-To: <68c9b875-e0d8-168d-a587-e85fb9e3f5e5@aklaver.com>
References: <CAEjudX7ZtdVFAENPQUWVMe741N0me0Op24GHE4ibPdm--hJHvw@mail.gmail.com> <68c9b875-e0d8-168d-a587-e85fb9e3f5e5@aklaver.com>
* 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