Re: Removing unneeded self joins

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема Re: Removing unneeded self joins
Дата
Msg-id a89f480f-8143-0965-f22d-0a892777f501@gmail.com
обсуждение исходный текст
Ответ на Re: Removing unneeded self joins  (Alexander Korotkov <aekorotkov@gmail.com>)
Ответы Re: Removing unneeded self joins  (Andrei Lepikhov <a.lepikhov@postgrespro.ru>)
Список pgsql-hackers
Hi Alexander,

23.10.2023 14:29, Alexander Korotkov wrote:
> Fixed all of the above. Thank you for catching this!

I've discovered that starting from d3d55ce57 the following query:
CREATE TABLE t(a int PRIMARY KEY);

WITH tt AS (SELECT * FROM t)
UPDATE t SET a = tt.a + 1 FROM tt
WHERE tt.a = t.a RETURNING t.a;

triggers an error "variable not found in subplan target lists".
(Commits 8a8ed916f and b5fb6736e don't fix this, unfortunately.)

Best regards,
Alexander



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Synchronizing slots from primary to standby
Следующее
От: Maciek Sakrejda
Дата:
Сообщение: Re: Pdadmin open on Macbook issue