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)
Список: 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 по дате сообщения:

От: Jeff
Дата:
Сообщение: Visual Explain
От: Bill
Дата:
Сообщение: Basic Postgresql Performance Question