select with conditions on array of composite types (postgresql)

Posted by valodzka on Stack Overflow See other posts from Stack Overflow or by valodzka
Published on 2010-04-01T10:54:54Z Indexed on 2010/04/01 12:23 UTC
Read the original article Hit count: 206

Filed under:
|
|
|

For example I have type:

CREATE TYPE record AS ( name text, description text, tags text[])

And table:

CREATE TABLE items ( id serial, records record[] )

How can I select all items with records with tags 'test' (without using PL/pgSQL)?

© Stack Overflow or respective owner

Related posts about postgresql

Related posts about array