Re: Large Rows

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Large Rows
Дата
Msg-id CA+U5nMJAE25KzpPd1uA9dJH127wYombNyHDQw2GSzAnrmX2qyg@mail.gmail.com
обсуждение исходный текст
Ответ на Large Rows  (Lee Hachadoorian <lee.hachadoorian@gmail.com>)
Ответы Re: Large Rows
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: missing chunk 0 for toast value ...
Следующее
От: Lee Hachadoorian
Дата:
Сообщение: Re: Large Rows