Re: full join in view

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Re: full join in view
Дата
Msg-id 3E1C2AA2.3000103@klaster.net
обсуждение исходный текст
Ответ на full join in view  ("Tambet Matiisen" <t.matiisen@aprote.ee>)
Список pgsql-sql
Tambet Matiisen wrote:

> I'm making a report in Crystal Reports, which makes use of full join. 
> As Crystal Reports does not support full join natively, I created a 
> view which contains the join and based my report on that view. The 
> report has also a parameter to filter only subset of rows from view. 
> My problem is, that when selecting from this view, optimizer never 
> uses indexes of neither of two tables.
>
> I understand, that optimizing the filter to the bottom of query tree 
> may not always give the same result with full join (although it should 
> in my case). Alternative could be to use function returning a table, 
> but I doubt I could use this function from Crystal Reports. What other 
> options I have?
>
>   Tambet

Can you add some sql examples - table & index definition, view definition?
If your view doesn't contain other views or sub-selects, postgres should 
use indexes.
Tomasz Myrta



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

Предыдущее
От: "Tambet Matiisen"
Дата:
Сообщение: full join in view
Следующее
От: Achilleus Mantzios
Дата:
Сообщение: Re: [PERFORM] 7.3.1 index use / performance