Re: On disable_cost
Alexander Law <exclusion@gmail.com>
From: Alexander Lakhin <exclusion@gmail.com>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>,
David Rowley <dgrowleyml@gmail.com>, Heikki Linnakangas <hlinnaka@iki.fi>,
Peter Geoghegan <pg@bowt.ie>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-09-06T10:10:10Z
Lists: pgsql-hackers
Hello Richard, 06.09.2024 12:51, Richard Guo wrote: > Ah I see. label_sort_with_costsize is only used to label the Sort > node nicely for EXPLAIN, and usually we do not display the cost > numbers in regression tests. In fact, I see the error with the following (EXPLAIN-less) query: create table t (x int); select * from t natural inner join (select * from (values(1)) v(x) union all select 1 from t t1 full join t t2 using (x), t t3 full join t t4 using (x) ); 2024-09-06 10:01:48.034 UTC [696535:5] psql LOG: statement: select * from t natural inner join (select * from (values(1)) v(x) union all select 1 from t t1 full join t t2 using (x), t t3 full join t t4 using (x) ); createplan.c:5457:6: runtime error: 4.99254e+09 is outside the range of representable values of type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior createplan.c:5457:6 in (An UBSan-enabled build --with-blocksize=32 is required for this query to trigger the failure.) Best regards, Alexander
Commits
-
Doc: add detail about EXPLAIN's "Disabled" property
- 84b8fccbe5c2 18.0 landed
-
Adjust EXPLAIN's output for disabled nodes
- 161320b4b960 18.0 landed
-
Fix order of parameters in a cost_sort call
- 87b6c3c0b703 18.0 landed
-
Show number of disabled nodes in EXPLAIN ANALYZE output.
- c01743aa4866 18.0 landed
-
Treat number of disabled nodes in a path as a separate cost metric.
- e22253467942 18.0 landed
-
Remove grotty use of disable_cost for TID scan plans.
- e4326fbc60c4 18.0 landed