Re: Removing unneeded self joins

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Removing unneeded self joins
Дата
Msg-id 20180516185840.a7crgjho7txxqmi4@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Removing unneeded self joins  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Removing unneeded self joins  ("Jonathan S. Katz" <jkatz@postgresql.org>)
Список pgsql-hackers
Hi,

On 2018-05-16 12:26:48 -0400, Robert Haas wrote:
> Also, I'm not sure that I believe that it's always easy to avoid
> generating such queries.

Yea. There's obviously plenty cases where ORMs just want to make the
database hurt. But especially when building a join between a number of
tables based on various fields, it's not going to be easy for the ORM to
figure out which ones can be safely omitted. It'd need similar
optimization as we'd have to do, without having the infrastructure core
PG has.  And then there's, as you say, views etc...

Greetings,

Andres Freund


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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Incorrect comment in get_partition_dispatch_recurse
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Odd procedure resolution