Re: Check-out mutable functions in check constraints

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Check-out mutable functions in check constraints
Date: 2019-07-12 06:55:20
Message-ID: CAFj8pRCY=gUKik9-DfABgcsDzJf2iYOsTpO8fkWs+X1NFYtgUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

pá 12. 7. 2019 v 8:45 odesílatel Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
napsal:

> Hello.
>
> As mentioned in the following message:
>
>
> https://www.postgresql.org/message-id/20190712.150527.145133646.horikyota.ntt%40gmail.com
>
> Mutable function are allowed in check constraint expressions but
> it is not right. The attached is a proposed fix for it including
> regression test.
>
> Other "constraints vs xxxx" checks do not seem to be exercised
> but it would be another issue.
>

I think so this feature (although is correct) can breaks almost all
applications - it is 20 year late.

Regards

Pavel

> regards.
>
> --
> Kyotaro Horiguchi
> NTT Open Source Software Center
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2019-07-12 06:59:55 Re: Memory-Bounded Hash Aggregation
Previous Message Kyotaro Horiguchi 2019-07-12 06:44:58 Check-out mutable functions in check constraints