Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116

Поиск
Список
Период
Сортировка
Искать
От
Amit Langote
Тема
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116
Дата
Msg-id
03c2d391-18ad-bf4e-1323-f5ab93e1b6ee@lab.ntt.co.jp
Ответ на
Список
Дерево обсуждения
[sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Andreas Seltenreich <seltenreich@gmx.de>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <amitlangote09@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Noah Misch <noah@leadboat.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Robert Haas <robertmhaas@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <amitlangote09@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Robert Haas <robertmhaas@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Robert Haas <robertmhaas@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Robert Haas <robertmhaas@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Robert Haas <robertmhaas@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Robert Haas <robertmhaas@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Robert Haas <robertmhaas@gmail.com>
Push down join with PHVs (WAS: Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116) Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Robert Haas <robertmhaas@gmail.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 Michael Paquier <michael.paquier@gmail.com>
On 2016/06/07 19:13, Ashutosh Bapat wrote:
> I thought, columns of inner relation will be set to null during projection
> from ForeignScan for joins. But I was wrong. If we want to push-down joins
> in this case, we have two solutions
> 1. Build queries with subqueries at the time of deparsing. Thus a base
> relation or join has to include placeholders while being deparsed as a
> subquery. This means that the deparser should deparse expression
> represented by the placeholder. This may not be possible always.
> 2. At the time of projection from ForeignScan recognize the nullable
> placeholders and nullify them if the corresponding relation is nullified.
> That looks like a major surgery.
> So, your patch looks to be the correct approach (even after we support
> deparsing subqueries). Can you please include a test in regression?

I added a slightly modified version of your test to the originally posted
patch.

Thanks,
Amit.
В списке pgsql-hackers по дате отправления
От: Ashutosh Bapat
Дата:
От: Andreas Karlsson
Дата:
FAQ