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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "Number of columns exceed limit" on a hierarchy of views
Дата
Msg-id 2760.1250862298@sss.pgh.pa.us
обсуждение исходный текст
Ответ на "Number of columns exceed limit" on a hierarchy of views  (David Waller <daw138a-postgres@yahoo.co.uk>)
Ответы Re: "Number of columns exceed limit" on a hierarchy of views
Список pgsql-general
David Waller <daw138a-postgres@yahoo.co.uk> 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Questions about encoding between two databases
Следующее
От: Tom Lane
Дата:
Сообщение: Re: "ownership" of sequences, pseudo random unique id