# PostgreSQL: SQLreduce: Reduce verbose SQL queries to minimal examples

**URL:** <https://forum.devtalk.com/t/postgresql-sqlreduce-reduce-verbose-sql-queries-to-minimal-examples/44110>\
**Category:** Backend Official News\
**Tags:** newsbot, sql, postgres, postgresql, official-news\
**Created:** [9 March 2022 19:05 UTC](https://forum.devtalk.com/t/postgresql-sqlreduce-reduce-verbose-sql-queries-to-minimal-examples/44110 "2022-03-09T19:05:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewsBot](https://forum.devtalk.com/user_avatar/forum.devtalk.com/newsbot/32/1114_2.png) [@NewsBot](https://forum.devtalk.com/u/NewsBot)\
**Post date:** [9 March 2022 19:05 UTC](https://forum.devtalk.com/t/postgresql-sqlreduce-reduce-verbose-sql-queries-to-minimal-examples/44110/1 "2022-03-09T19:05:23Z")

</div>

A new [PostgreSQL](https://devtalk.com/postgresql) blog post/announcement has been posted!

> [@](#):
>
> [SQLsmith](https://github.com/anse1/sqlsmith) has proven to be an effective tool for finding bugs in different areas in the PostgreSQL server and other products, including security bugs, ranging from executor bugs to segfaults in type and index method implementations.
> 
> However, the random queries generated by SQLsmith that trigger some error are most often very large and contain a lot of noise that does not contribute to the error. So far, manual inspection of the query and tedious editing was required to reduce the example to a minimal reproducer that developers can use to fix the problem.
> 
> This issue is solved by [SQLreduce](https://github.com/credativ/sqlreduce). SQLreduce takes as input an arbitrary SQL query which is then run against a PostgreSQL server. Various simplification steps are applied, checking after each step that the simplified query still triggers the same error from PostgreSQL. The end result is a SQL query with minimal comple...

Get the full details here: [PostgreSQL: SQLreduce: Reduce verbose SQL queries to minimal examples](https://www.postgresql.org/about/news/sqlreduce-reduce-verbose-sql-queries-to-minimal-examples-2418/)
