Re: syntax sugar for conditional check
От | Pavel Stehule |
---|---|
Тема | Re: syntax sugar for conditional check |
Дата | |
Msg-id | CAFj8pRACb+eTs6rBdpf=_xm625eWUyezXbEkR_0P-6qSNSdOdA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: syntax sugar for conditional check ("David G. Johnston" <david.g.johnston@gmail.com>) |
Список | pgsql-hackers |
2016-04-01 18:57 GMT+02:00 David G. Johnston <david.g.johnston@gmail.com>:
+1
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.For future reference please make every effort to make emails to the list self-contained - which has the added benefit of avoid link expiration in the future.As to the recommendation at hand - I don't see significant value in implementing non-SQL Standard syntax in this area.
+1
This formula should be known to all developers
Regards
Pavel
David J.
В списке pgsql-hackers по дате отправления: