Download Latest Version SQLsmith 1.4 is released source code.tar.gz (134.9 kB)
Email in envelope

Get an email when there's a new version of sqlsmith

Home / v1.0
Name Modified Size InfoDownloads / Week
Parent folder
sqlsmith-1.0.tar.gz 2016-05-30 203.8 kB
README.md 2016-05-30 1.1 kB
SQLsmith 1.0 is released source code.tar.gz 2016-05-30 86.2 kB
SQLsmith 1.0 is released source code.zip 2016-05-30 91.3 kB
Totals: 4 Items   382.4 kB 0

SQLsmith is a random SQL query generator for PostgreSQL. It is inspired by Csmith, which generates random C code.

Use cases are quality assurance through fuzz testing and benchmarking. Besides PostgreSQL developers, users developing extensions might also be interested in exposing their code to SQLsmith's random workload.

During its development, it already found about thirty bugs in PostgresSQL alphas, betas and releases, including security vulnerabilities in released versions. There is a score list maintained by its users in a wiki:

https://github.com/anse1/sqlsmith/wiki#score-list

Version 1.0 supports generating queries for PostgreSQL 9.5 or later only. SQLsmith was designed with testing different versions and even products in mind, but this has not manifested yet for the first release.

SQLsmith is available under GPLv3. Use it at your own risk. It may damage your database (one of the purposes of this tool is to try and break things). See the file COPYING for details.

Packages for Debian/Ubuntu are available via apt.postgresql.org.

Source: README.md, updated 2016-05-30