Re: Add a check an a array column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: vdg <vdg(dot)encelade(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Add a check an a array column
Date: 2012-09-09 15:24:15
Message-ID: 23178.1347204255@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

vdg <vdg(dot)encelade(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Bernier 2012-09-09 15:42:25 good article
Previous Message Andreas Kretschmer 2012-09-09 12:01:07 Re: Add a check an a array column