Re: [GENERAL] Array, ANY and Regular Expressions

2008-08-24 Thread Stefan 'Kaishakunin' Schumacher
Also sprach Tom Lane ([EMAIL PROTECTED]) > "Stefan 'Kaishakunin' Schumacher" <[EMAIL PROTECTED]> writes: > > I have a table with an array column (tags text[]) which I want to > > select from via ANY and RegExes. > > > SELECT tags from zettelkasten where 'Sozialpsychologie' ~* any(tags) order > >

Re: [GENERAL] Array, ANY and Regular Expressions

2008-08-23 Thread Tom Lane
"Stefan 'Kaishakunin' Schumacher" <[EMAIL PROTECTED]> writes: > I have a table with an array column (tags text[]) which I want to > select from via ANY and RegExes. > SELECT tags from zettelkasten where 'Sozialpsychologie' ~* any(tags) order by > ident; Did you look at the matches? I suspect

[GENERAL] Array, ANY and Regular Expressions

2008-08-23 Thread Stefan 'Kaishakunin' Schumacher
I have a table with an array column (tags text[]) which I want to select from via ANY and RegExes. SELECT tags from zettelkasten where 'Sozialpsychologie' ~* any(tags) order by ident; delivers 7 rows SELECT tags from zettelkasten where 'SoziALPSychologie---FOOBARBAZ' ~* any(tags) order by