Re: why is a constraint not 'pushed down' into a subselect when this subselect is using a 'group by' ??

Поиск
Список
Период
Сортировка
От Frank van Vugt
Тема Re: why is a constraint not 'pushed down' into a subselect when this subselect is using a 'group by' ??
Дата
Msg-id 200406161042.10259.ftm.van.vugt@foxi.nl
обсуждение исходный текст
Ответ на Re: why is a constraint not 'pushed down' into a subselect when this subselect is using a 'group by' ??  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
> We don't attempt to make every possible inference (and I don't think
> you'd like it if we did).

I wasn't really asking you to, either ;))

Just trying to achieve a more in-depth understanding of the way things work.

> This example doesn't
> persuade me that it would be worth expending the cycles to do so.

In the real thing I can easily get good processing times by adding an extra
join with article inside in the group by and simply use the constraint on
that as well, so I'm ok with any choice you make on this.

I thought this might have been some kind of special case though, given its
occurence on the use of group by.

> for example, zero and minus zero in IEEE-standard float arithmetic.

Good example, brings back a few memories as well ;)




Thanks for your explanation, Tom!



--
Best,




Frank.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: why is a constraint not 'pushed down' into a subselect when this subselect is using a 'group by' ??
Следующее
От: Jeff
Дата:
Сообщение: Visual Explain