Re: Searching array fields - or should I redesign?

Поиск
Список
Период
Сортировка
От Vincent Veyron
Тема Re: Searching array fields - or should I redesign?
Дата
Msg-id 1292543562.2397.66.camel@asus-1001PX.home
обсуждение исходный текст
Ответ на Re: Searching array fields - or should I redesign?  (Bryan Montgomery <monty@english.net>)
Список pgsql-general
Le jeudi 16 décembre 2010 à 15:18 -0500, Bryan Montgomery a écrit :
> Thanks for the comments. Just to clarify, I gave these two values as
> examples. The readings could be between a handful for one vehicle type
> up to 40 or more for another type of vehicle.
>

Not sure what you call a reading? do you mean like a parameter? if so
give it its own column with an appropriate type. Your table would then
have 40 columns, some of them being empty for some type of vehicle.

If a reading really is a record, then you want a subclass, with a
foreign key referencing the primary key of your vehicle table. You can
then have un unlimited number of records (again, each record having a
column for each of the parameters/characteristics measured) .


--
Vincent Veyron
http://marica.fr/
Progiciel de gestion des dossiers de contentieux et d'assurance pour le service juridique


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

Предыдущее
От: Alex Hunsaker
Дата:
Сообщение: Re: Plperl caching prepared queries and cleanup
Следующее
От: "Edmundo Robles L."
Дата:
Сообщение: PANIC: ERRORDATA_STACK_SIZE exceeded