Re: BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait

From: Andres Freund <andres(at)anarazel(dot)de>
To: gsv371(at)ukr(dot)net
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait
Date: 2016-02-10 16:47:36
Message-ID: 20160210164736.dag57bvnjqou24fm@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2016-02-10 10:53:28 +0000, gsv371(at)ukr(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2016-02-10 16:52:08 Re: BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait
Previous Message gsv371 2016-02-10 10:53:28 BUG #13941: Different value "pg_constraint.consrc" for similar Check Constrait