T_CustomScan on ExplainTargetRel

Поиск
Список
Период
Сортировка
От Kouhei Kaigai
Тема T_CustomScan on ExplainTargetRel
Дата
Msg-id 9A28C8860F777E439AA12E8AEA7694F8010836AD@BPXM15GP.gisp.nec.co.jp
обсуждение исходный текст
Ответы Re: T_CustomScan on ExplainTargetRel  (Kouhei Kaigai <kaigai@ak.jp.nec.com>)
Re: T_CustomScan on ExplainTargetRel  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello,

The attached obvious patch adds T_CustomScan on case-switch of
ExplainTargetRel() that was oversight.

It looked like working, but what it did was just printing referenced
name, instead of table name.

postgres=# explain select ctid, * from t0 hoge where ctid > '(50,0)'::tid;
                               QUERY PLAN
------------------------------------------------------------------------
 Custom Scan (ctidscan) on hoge  (cost=0.00..100.00 rows=3333 width=43)
   Filter: (ctid > '(50,0)'::tid)
   ctid quals: (ctid > '(50,0)'::tid)
(3 rows)

This patch fixes up this behavior, as like other *Scan nodes are doing.

postgres=# explain select ctid, * from t0 hoge where ctid > '(50,0)'::tid;
                         QUERY PLAN
-------------------------------------------------------------
 Seq Scan on t0 hoge  (cost=0.00..209.00 rows=3333 width=43)
   Filter: (ctid > '(50,0)'::tid)
(2 rows)

Thanks,
--
NEC OSS Promotion Center / PG-Strom Project
KaiGai Kohei <kaigai@ak.jp.nec.com>


Вложения

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

Предыдущее
От: Anssi Kääriäinen
Дата:
Сообщение: Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}
Следующее
От: Kouhei Kaigai
Дата:
Сообщение: Re: T_CustomScan on ExplainTargetRel