SQLSmith is a fuzz testing tool for PostgreSQL that automatically generates random SQL queries to uncover bugs in the query planner and executor. It is widely used by PostgreSQL developers and database vendors to stress-test SQL features and engine behavior under edge-case conditions. SQLSmith helps improve database robustness by revealing unexpected failures.

Features

  • Random SQL query generation for PostgreSQL
  • Stress-tests the query planner, parser, and executor
  • Helps identify crashes, assertion failures, and performance bugs
  • Supports different SQL constructs and PostgreSQL features
  • Highly configurable query complexity and structure
  • Used for regression testing in PostgreSQL development

Project Samples

Project Activity

See All Activity >

Categories

SQL Clients

License

GNU General Public License version 3.0 (GPLv3)

Follow sqlsmith

sqlsmith Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of sqlsmith!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C++

Related Categories

C++ SQL Clients

Registered

2025-06-12