Re: BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait
Date
Msg-id 20160210164736.dag57bvnjqou24fm@alap3.anarazel.de
Whole thread Raw
In response to BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait  (gsv371@ukr.net)
Responses Re: BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait
Re: BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait
List pgsql-bugs
On 2016-02-10 10:53:28 +0000, gsv371@ukr.net wrote:
> PostgreSQL 9.5:
> 1.
> ALTER TABLE schedule ADD CONSTRAINT schedule_fact_quant_val CHECK
> (fact_quant BETWEEN 0 AND 23.59 AND (fact_quant - trunc(fact_quant)) <
> 0.6);
> result (pg_constraint.consrc): "(((fact_quant >= (0)::numeric) AND
> (fact_quant <= 23.59)) AND ((fact_quant - trunc(fact_quant)) < 0.6))"
> 2.
> ALTER TABLE schedule ADD CONSTRAINT schedule_fact_quant_val CHECK
> (((fact_quant >= (0)::numeric) AND (fact_quant <= 23.59)) AND ((fact_quant -
> trunc(fact_quant)) < 0.6));
> result (pg_constraint.consrc): "((fact_quant >= (0)::numeric) AND
> (fact_quant <= 23.59) AND ((fact_quant - trunc(fact_quant)) < 0.6))"
> ----------------------------------
> PostgreSQL 9.4 - identical results!

Why do you consider that a bug?

Regards,

Andres

pgsql-bugs by date:

Previous
From: prathameshsonavane@gmail.com
Date:
Subject: BUG #13940: rollback prepared is not working
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait