Re: Failing assertions in indxpath.c, placeholder.c and brin_minmax.c
Michael Paquier <michael.paquier@gmail.com>
On Sun, Jul 26, 2015 at 10:32 PM, Andreas Seltenreich <seltenreich@gmx.de> wrote: > Michael Paquier writes: > > >> Footnotes: > >> [1] https://github.com/anse1/sqlsmith > > > > This is really interesting stuff. I think that it would be possible to > > extract self-contained test cases from your tool and those queries to > > reproduce the failures. It is written that this tools connects to a > > database to retrieve the schema, what is it exactly in the case of > > those failures? > > I used the database "regression" that pg_regress leaves behind when you > remove the --temp-install from it's default invocation through make > check. Sorry about not being explicit about that. > > So, dropping one of the queries into src/test/regress/sql/smith.sql and > invoking > > make check EXTRA_TESTS=smith > > was all that was needed to integrate them. I was then able to perform > "git bisect run" on this command. Er, plus consing the expected output > file. > > I'm using the regression db a lot when hacking on sqlsmith, as it > contains much more nasty things than your average database. > Ah, OK. Thanks. The code is licensed as GPL, has a dependency on libpqxx and is written in C++, so it cannot be integrated into core as a test module in this state, but I think that it would be definitely worth having something like that in the code tree that runs on the buildfarm. We could have caught up those problems earlier. Now I imagine that this is a costly run, so we had better have a switch to control if it is run or not, like a configure option or a flag. Thoughts? -- Michael
Commits
-
Fix broken assertion in BRIN code
- c81276241b61 9.6.0 landed
- 244c378e243e 9.5.0 landed
-
Support flattening of empty-FROM subqueries and one-row VALUES tables.
- f4abd0241de2 9.5.0 cited
-
Fix resource leak pointed out by Coverity.
- 3b5a89c4820f 9.5.0 cited
-
Add missing volatile qualifier.
- 68e66923ff62 9.5.0 cited
-
Remove dependency on wsock32.lib in favor of ws2_32
- a16bac36eca8 9.5.0 cited
-
Check interrupts during logical decoding more frequently.
- 1cbc94801062 9.5.0 cited
-
Fix contrib/pg_upgrade/test.sh for $PWD containing spaces.
- 686f362bee12 9.5.0 cited
-
Secure Unix-domain sockets of "make check" temporary clusters.
- be76a6d39e28 9.5.0 cited
-
Adjust 9.4 release notes.
- a7205d81573c 9.5.0 cited
-
Improve predtest.c's ability to reason about operator expressions.
- 3f8c23c4d31d 9.5.0 cited
-
Fix pg_restore's processing of old-style BLOB COMMENTS data.
- c81e63d85f0c 9.5.0 cited
-
Improve tuplestore's error messages for I/O failures.
- 6554656ea204 9.5.0 cited
-
Remove unnecessary output expressions from unflattened subqueries.
- 55d5b3c08279 9.5.0 cited
-
Stamp 9.4beta1.
- e6df2e1be633 9.4.0 cited