Re: Large Rows - Mailing list pgsql-general

From Simon Riggs
Subject Re: Large Rows
Date
Msg-id CA+U5nMJAE25KzpPd1uA9dJH127wYombNyHDQw2GSzAnrmX2qyg@mail.gmail.com
Whole thread Raw
In response to Large Rows  (Lee Hachadoorian <lee.hachadoorian@gmail.com>)
Responses Re: Large Rows  (Lee Hachadoorian <lee.hachadoorian@gmail.com>)
List pgsql-general
On Wed, Oct 26, 2011 at 2:57 PM, Lee Hachadoorian
<lee.hachadoorian@gmail.com> wrote:

> Interesting. Although your example of one, 100000-dimension array works,
> five hundred 2-dimension arrays does not work. I can do the SELECT, but the
> CREATE TABLE fails:
>
> ERROR: row is too big: size 9024, maximum size 8160
> SQL state: 54000
>
> David has already hit the nail on the head in terms of this being a
> "political" problem rather than a technology problem. I'm open to ideas, but
> I realize there might be no other answer than "No one in their right mind
> should do this."

No, this is a technology problem.

Toast pointers are 20 bytes per column, so with 500 columns that is
10000 bytes - which will not fit in one block.

If you wish to fit this in then you should use a 2 dimensional array,
which will then be just 1 column and your data will fit.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: missing chunk 0 for toast value ...
Next
From: Lee Hachadoorian
Date:
Subject: Re: Large Rows