Re: Runtime pruning problem
От
David Rowley
Тема
Re: Runtime pruning problem
Дата
Msg-id
CAKJS1f98o-6-SWWzcfiJO6JAQFu2DnYWBzFVB0x2+u5ub=ASEA@mail.gmail.com
Ответ на
Re: Runtime pruning problem (Amit Langote)
Список
Дерево обсуждения
Runtime pruning problem "Yuzuko Hosoya" <hosoya.yuzuko@lab.ntt.co.jp>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Runtime pruning problem Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Michael Paquier <michael@paquier.xyz>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Michael Paquier <michael@paquier.xyz>
Re: Runtime pruning problem David Rowley <david.rowley@2ndquadrant.com>
Re: Runtime pruning problem Tom Lane <tgl@sss.pgh.pa.us>
Re: Runtime pruning problem Amit Langote <amitlangote09@gmail.com>
Re: Runtime pruning problem Robert Haas <robertmhaas@gmail.com>
Re: Runtime pruning problem Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
On Wed, 17 Apr 2019 at 13:13, Amit Langote wrote: > When you see this: > > explain select * from t1 where dt = current_date + 400; > QUERY PLAN > ──────────────────────────────────────────────────────────── > Append (cost=0.00..198.42 rows=44 width=8) > Subplans Removed: 3 > -> Seq Scan on t1_1 (cost=0.00..49.55 rows=11 width=8) > Filter: (dt = (CURRENT_DATE + 400)) > (4 rows) > > Doesn't this give an impression that t1_1 *matches* the WHERE condition > where it clearly doesn't? IMO, contorting explain.c to show an empty > Append like what Hosoya-san suggests doesn't sound too bad given that the > first reaction to seeing the above result is to think it's a bug of > partition pruning. Where do you think the output list for EXPLAIN VERBOSE should put the output column list in this case? On the Append node, or just not show them? -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления