Search Postgresql Archives

Re: "Number of columns exceed limit" on a hierarchy of views

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Waller <daw138a-postgres@xxxxxxxxxxx> writes:
> I'm struggling with a database query that under some circumstances returns the error "ERROR:  number of columns (2053) exceeds limit (1664)".  Confusingly, though, no table is that wide.

This limit would be enforced against the output rows of any intermediate
join step.  Without looking at EXPLAIN plans it's hard to say exactly
what's biting you, but it doesn't surprise me a a whole lot that joining
multiple 500-column tables would get you into trouble.  I'd suggest
reconsidering your table schemas.  Array columns might help.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux