Re: weighting (the results of) a query ?

Поиск
Список
Период
Сортировка
От Peter Galbavy
Тема Re: weighting (the results of) a query ?
Дата
Msg-id 023f01c2b669$6ce39270$4528a8c0@cblan.mblox.com
обсуждение исходный текст
Ответ на weighting (the results of) a query ?  ("Peter Galbavy" <peter.galbavy@knowtion.net>)
Ответы Re: weighting (the results of) a query ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
> Most likely you should write UNION ALL, not UNION.  As given, the query
> will go through a pass of attempted duplicate-row-elimination, which is
> almost certainly not what you want.

Not sure - what I want is only one row per real row but ordered as per the
constants. When you say duplicate-row-elimination do you mean including the
'constant' weighting, in which case UNION ALL is probably right. At the
moment, the dataset returned appears correctly de-duplicated.

What I mean is when an image row has both 'eat static' in the caption and as
a keyword, I want it returned only once...

Peter



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

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: [PERFORM] 7.3.1 index use / performance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORM] 7.3.1 index use / performance