Re: Improving isolationtester's data output
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>, pgsql-hackers@lists.postgresql.org
Date: 2021-06-16T19:30:23Z
Lists: pgsql-hackers
Hi, On 2021-06-15 22:44:29 -0400, Tom Lane wrote: > Here's a really quick-and-dirty patch to see what that would look > like. I haven't bothered here to update the expected-files outside > the main src/test/isolation directory, nor to fix the variant files. Neat. > + memset(&popt, 0, sizeof(popt)); > + popt.header = true; > + popt.align = true; > + popt.fieldSep = "|"; > + PQprint(stdout, res, &popt); > } Is there an argument for not aligning because that can make diffs larger than the actual data changes? E.g. one row being longer will cause all rows in the result set to be shown as differing because of the added padding? This has been a problem in the normal regression tests, where we solved it by locally disabling alignment. It might be unproblematic for isolationtester, because we don't often have large result sets... Greetings, Andres Freund
Commits
-
Improve display of query results in isolation tests.
- 4a054069a360 14.0 landed
- e535a8899397 9.6.23 landed
- d7da3ef08989 12.8 landed
- b961bdfe1664 13.4 landed
- b1aa0f228465 11.13 landed
- 0a8929ca0b9e 10.18 landed
-
Detect unused steps in isolation specs and do some cleanup
- 484c81bf7765 9.6.23 landed
- feac82fa8550 10.18 landed
- 8f32299424d9 11.13 landed
- 96f3661e4540 12.8 landed
- 989d23b04bea 13.0 cited
-
Remove dry-run mode from isolationtester
- b7cd5c5b02fa 9.6.23 landed
- 0ed218048932 10.18 landed
- 834cb7269166 11.13 landed
- a8f687927eea 12.8 landed
- 9903338b5ea5 13.0 cited