Re: Add a check an a array column - Mailing list pgsql-general

From Tom Lane
Subject Re: Add a check an a array column
Date
Msg-id 23178.1347204255@sss.pgh.pa.us
Whole thread Raw
In response to Re: Add a check an a array column  (vdg <vdg.encelade@gmail.com>)
List pgsql-general
vdg <vdg.encelade@gmail.com> writes:
> Before posting, I had tried something like

> check ((ALL(i) >= 0) AND (ALL(i) <= 1024  )));

> but i got syntax errors.

Well, that's not the syntax.

> Could someone give me documentation hints on this behaviour ?

http://www.postgresql.org/docs/9.1/static/functions-subquery.html#FUNCTIONS-SUBQUERY-ALL
http://www.postgresql.org/docs/9.1/static/functions-comparisons.html#AEN17447

            regards, tom lane


pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: Add a check an a array column
Next
From: Robert Bernier
Date:
Subject: good article