Re: ERROR: row is too big: size 9856, maximum size 8136 - Mailing list pgsql-sql

From Tom Lane
Subject Re: ERROR: row is too big: size 9856, maximum size 8136
Date
Msg-id 8972.1106253487@sss.pgh.pa.us
Whole thread Raw
In response to Re: ERROR: row is too big: size 9856, maximum size 8136  ("Joel Fradkin" <jfradkin@wazagua.com>)
Responses Re: ERROR: row is too big: size 9856, maximum size 8136  ("Joel Fradkin" <jfradkin@wazagua.com>)
List pgsql-sql
"Joel Fradkin" <jfradkin@wazagua.com> writes:
> Sorry, that was the statement that caused the error.

Hmm.  The error is associated with trying to store an oversized row.
And CREATE VIEW doesn't store any rows ... except into system catalogs.
So the only theory I can think of is that the pg_rewrite row for the
view is exceeding 8K.  Which can't happen, because no matter how
complicated the view definition rule is, the tuple toaster should have
sprung into action and pushed the rule text out-of-line.

Could we see the results of

select * from pg_class where relname = 'pg_rewrite';

select attname,atttypid::regtype,attstorage from pg_attribute where attrelid = 'pg_rewrite'::regclass and attnum > 0;

7.4 should certainly be configured to have a toast table for pg_rewrite,
but maybe something went wrong during initdb on your installation.
        regards, tom lane


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: ERROR: row is too big: size 9856, maximum size 8136
Next
From: "Joel Fradkin"
Date:
Subject: Re: ERROR: row is too big: size 9856, maximum size 8136