Re: GSOC13 proposal - extend RETURNING syntax

Поиск
Список
Период
Сортировка
От Karol Trzcionka
Тема Re: GSOC13 proposal - extend RETURNING syntax
Дата
Msg-id 51EE332E.7070307@gmail.com
обсуждение исходный текст
Ответ на Re: GSOC13 proposal - extend RETURNING syntax  (David Fetter <david@fetter.org>)
Список pgsql-hackers
W dniu 23.07.2013 06:22, David Fetter pisze:
> What problem or problems did you notice, and what did you change to
> fix them?
"UPDATE ... FROM" generated "ERROR:  variable not found in subplan
target lists". I've added some workaround in add_vars_to_targetlist:
- if it is an "after" - simple change var->varno to base RTE (it should
always exists, the value is temporary, it will change to OUTER_VAR)
- if it is a "before" - add to targetlist new var independently from
rel->attr_needed[attno].
Additionally I've change build_joinrel_tlist to ignore any "BEFORE"
RTEs. The regression tests are updated.
Regards,
Karol



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: anchovy failing on 9.1 and earlier since using gcc 4.8
Следующее
От: Sawada Masahiko
Дата:
Сообщение: Re: Using ini file to setup replication