maximum "target list" (maximum columns)

Поиск
Список
Период
Сортировка
От Shaun Cutts
Тема maximum "target list" (maximum columns)
Дата
Msg-id 088F96F9-8C08-4FB7-874D-B72C3562412A@factfiber.com
обсуждение исходный текст
Ответы Re: maximum "target list" (maximum columns)  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: maximum "target list" (maximum columns)  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Re: maximum "target list" (maximum columns)  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
The opinion of database developers is that using more than 1664 columns is bad design, so that the current maximum
numberof columns is not onerous. 

When I simply built applications on top of databases, I was of the same opinion.

However, now my job is to perform some sort of analysis on data from elsewhere. Over the course of a couple weeks I
needto do something with data that often is 
structured into tables of many thousands of columns. Figuring out what the appropriate form is part of manipulating the
data— something for which I’d 
like to use postgres. My applications, such as they are, handle metadata not data.

Operations such as crosstab or json_populate_record can easily create rows with many more than 1664 fields. I also use
datasuch as census data — with many different survey fields all applying to geographic areas. For a given application
onlysome are relevant, but ideally I’d create a materialized view for a given project with relevant data. In the best
case,the “library” version of the dataset would have just a few very wide tables. Storing in json is possible but
inconvenient,slower and means that often type info must be stored 
separately.

In short, IMHO the database shouldn’t force me to structure my data before I understand it, and being able to query it
ishow I come to understand it. At some scale, practicality dictates that one needs to take “special measures” to handle
largevolumes of data — large in breadth as well as width. But this boundary should be on the order of millions of
columns,not thousands. 

Is there a reason besides “its bad design” to disallow tables with many columns?



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

Предыдущее
От: Catalin Maftei
Дата:
Сообщение: Re: ***SPAM*** Re: random huge delay when recreate a VIEW or FUNCTION
Следующее
От: Tom Lane
Дата:
Сообщение: Re: maximum "target list" (maximum columns)