From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: missing support for using regex and arrays |
Date: | 2004-05-11 11:44:42 |
Message-ID: | 29698.1084275882@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz> writes:
> I need to solve checking varchar array. I can write
> CHECK('aaa' = ALL(x)) -- x is array
> but I can't CHECK(ALL(x) = 'aaaa') or CHECK (ALL(x) ~ 'regex')
> I know so I can write plpgsql function. I have question for hackers. Do
> You plan better support for it?
No. The ALL keyword has to follow the operator it applies to --- the
syntax is not just "all(something)" but "something op all(something)".
I don't think we can relax that without creating syntactic ambiguity.
If you want to work with non-commutative operators such as regex, you
may need to invent your own operator.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | PostgreSQL Bugs List | 2004-05-11 12:18:13 | BUG #1151: Initdb fails ... |
Previous Message | Rachel Willmer | 2004-05-11 11:14:04 | V7.4.2: drop database does not drop schemas/table/data |