Re: need query advice

Поиск
Список
Период
Сортировка
От Pierre-Frédéric Caillaud
Тема Re: need query advice
Дата
Msg-id opsf46yqxrcq72hf@musicbox
обсуждение исходный текст
Ответ на need query advice  (Stephan Fiebrandt <bsd@kuehlbox.de>)
Список pgsql-sql
argh, you could use contribs/intarray with a gist index...instead of N columns use an integer[] and gist-index it, then
writethe  
 
equivalent of :
where (intersection of the search array with the data array) has at least  
5 elements(or 4 elements)
(or at least 4 elements order by the number of elements desc)
in your table defs, you can express your unicity constraint on the array  
with :CHECK( uniq(yourarrau) = yourarrau AND length(yourarrau)=6 )




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

Предыдущее
От: Edmund Bacon
Дата:
Сообщение: Re: help with to_date and to_char
Следующее
От: Postgres User
Дата:
Сообщение: Which type of functions are best?