Re: how to add more than 1600 columns in a table? - Mailing list pgsql-general

From Michel Pelletier
Subject Re: how to add more than 1600 columns in a table?
Date
Msg-id CACxu=vLmdefsLjTJFmz-EongnSdK1GYTCG5XkoYo6X+ELHe-2Q@mail.gmail.com
Whole thread Raw
In response to Re: how to add more than 1600 columns in a table?  (pabloa98 <pabloa98@gmail.com>)
List pgsql-general
On Wed, Apr 24, 2019 at 3:11 PM pabloa98 <pabloa98@gmail.com> wrote:
We used tables because we have 2 types of queries on this table:

SELECT * FROM table_wih_lots_of_columns WHERE condition involving a lot of columns.
These type of queries read lot of rows.

or

SELECT columnX FROM table_wih_lots_of_columns WHERE condition involving a lot of columns
These type of queries read very few rows.


Everyone else has had great advice on this, I'd like to add that arrays of any dimension are limited to 1GB like all varlena objects.

You should check out pg-strom, it's highly optimized for running exactly these kinds of queries on a GPU and comes with a native matrix type that can exceed the 1GB limit.


-Michel

pgsql-general by date:

Previous
From: Gavin Flower
Date:
Subject: Re: how to add more than 1600 columns in a table?
Next
From: rihad
Date:
Subject: Does "ON UPDATE" for foreign keys require index?