Re: Modeling a table with arbitrary columns
От
Віталій Тимчишин
Тема
Re: Modeling a table with arbitrary columns
Дата
Msg-id
331e40660910300318q1ad33d1bifa0fbe730f38c0c7@mail.gmail.com
Ответ на
Modeling a table with arbitrary columns (Andreas Hartmann)
Список
Дерево обсуждения
Modeling a table with arbitrary columns Andreas Hartmann <andreas@apache.org>
Re: Modeling a table with arbitrary columns Віталій Тимчишин <tivv00@gmail.com>
Re: Modeling a table with arbitrary columns Robert Haas <robertmhaas@gmail.com>
Re: Modeling a table with arbitrary columns Thomas Kellerer <spam_eater@gmx.net>
2009/10/29 Andreas Hartmann <andreas@apache.org>
Hi everyone,
I want to model the following scenario for an online marketing application:
Users can create mailings. The list of recipients can be uploaded as spreadsheets with arbitrary columns (each row is a recipient). I expect the following maximum quantities the DB will contain:
I see basically two approaches to store the recipients:
A) A single table with a fixed number of generic columns. If the spreadsheet has less columns than the table, the values will be null.
B) Two tables, one for the recipients and one for the values:
One more option is to use arrays (and single table).
В списке pgsql-performance по дате отправления
От: Grzegorz Jaśkiewicz
Дата: