Re: Removing unneeded self joins

Поиск
Список
Период
Сортировка
От Alexander Kuzmenkov
Тема Re: Removing unneeded self joins
Дата
Msg-id 2285d5d0-f330-e8b6-9ee5-b2b90e44409b@postgrespro.ru
обсуждение исходный текст
Ответ на Re: Removing unneeded self joins  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: Removing unneeded self joins
Re: Removing unneeded self joins
Список pgsql-hackers
On 07/29/2018 01:42 PM, Thomas Munro wrote:
>
> I think you need to disable the optimisation when there is a locking
> clause on one side.  Maybe it could be allowed if it's on both sides?
> Not sure.

Hi Thomas,

Thanks for testing. I think it should be OK to remove the join if the 
row marks for both sides have the same type. I added the code to check 
for that.

> You can't declare a variable here in C89.
>

Fixed.

-- 
Alexander Kuzmenkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


Вложения

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

Предыдущее
От: Cynthia Shang
Дата:
Сообщение: Re: Allow COPY's 'text' format to output a header
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Expression errors with "FOR UPDATE" and postgres_fdw withpartition wise join enabled.