Mask out work_mem in auto_explain tests
Commit 73ca7e77 (greenplum-db/gpdb#7195) introduced a simple suite that exercises auto_explain. However, it went beyond a simple "EXPLAIN", and instead it ran a muted version of EXPLAIN ANALYZE. Comparing the output of "EXPLAIN ANALYZE" in a regress test is always error-prone and flaky. To wit, commit 1348afc0 (#7608) had to be done shortly after 73ca7e77, because the feature was time sensitive. More recently commit 2e4d99fa (#10032) was forced to memorize the work_mem, likely compiled with --enable-cassert, and missed the case when we were configured without asserts, failing the test with a smaller-than-expected work_mem. This commit puts a band aid on it by masking the numeric values of work_mem in auto_explain output.
Showing
想要评论请 注册 或 登录