Skip to content

Few suggestions towards further reducing some SQLs #3

@robins

Description

@robins

While trying to narrow down a bug, I saw that SQLReduce could do a little better.

Original SQLReduce output (sample provided):

SELECT WHERE Fn1 @@ Fn2(Fn3,Fn4)

This could be shortened to:

SELECT WHERE Fn2(Fn3,Fn4)::TEXT::BOOLEAN;

Although not possible in all cases, it could be further shortened to:

SELECT Fn2(Fn3,Fn4);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions