syntax sugar for conditional check - Mailing list pgsql-hackers

From Alexander Ostrow
Subject syntax sugar for conditional check
Date
Msg-id 61B8D172-D35A-4715-A793-6EFDD2795E5D@epcylon.com
Whole thread
Responses Re: syntax sugar for conditional check
Re: syntax sugar for conditional check
List 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:


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

pgsql-hackers by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: raw output from copy
Next
From: Michael Banck
Date:
Subject: Re: So, can we stop supporting Windows native now?