Re: BUG #5794: 'explain' fails, but executing sql is ok. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5794: 'explain' fails, but executing sql is ok.
Date
Msg-id 6881.1292790887@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5794: 'explain' fails, but executing sql is ok.  ("Peter Speck" <speck@vitality.dk>)
List pgsql-bugs
"Peter Speck" <speck@vitality.dk> writes:
> The following SQL succeeds when executed as-is, but when the SELECT is
> prepended with 'EXPLAIN', it fails with:

> ERROR:  XX000: unexpected CASE WHEN clause: 314
> LOCATION:  get_rule_expr, ruleutils.c:4939

Fixed, thanks for the report!

As a temporary workaround you could just omit "TRUE" from "CASE TRUE
WHEN" ... it's a pretty redundant way to write the expression.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Peter Speck"
Date:
Subject: BUG #5794: 'explain' fails, but executing sql is ok.
Next
From: Christopher Head
Date:
Subject: Re: BUG #5559: Full SSL verification fails when hostaddr provided