syntax sugar for conditional check

From: Alexander Ostrow <aj(at)epcylon(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: syntax sugar for conditional check
Date: 2016-03-31 17:19:44
Message-ID: 61B8D172-D35A-4715-A793-6EFDD2795E5D@epcylon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

I thought it would be cool to have conditional check syntax, which gets converted to simple check constraint syntax.

Here’s a gist:

https://gist.github.com/aj0strow/5a07f2ddcad324c4dac2c4095c821999

It’s just sugar, but i think it would make check constraints easier to read, and easier to write without backwards boolean logic.

Thank you,

AJ

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2016-03-31 17:21:02 Re: Move PinBuffer and UnpinBuffer to atomics
Previous Message Robbie Harwood 2016-03-31 17:04:32 Re: [PATCH v9] GSSAPI encryption support