Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 20568633DF4 for ; Tue, 18 Aug 2009 06:44:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 52059-08 for ; Tue, 18 Aug 2009 09:44:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from titania.wxnz.net (titania.wxnz.net [58.28.4.13]) by mail.postgresql.org (Postfix) with ESMTP id 5359D6338DF for ; Tue, 18 Aug 2009 06:44:36 -0300 (ADT) Received: from gonzo (ip-118-90-142-108.xdsl.xnet.co.nz [118.90.142.108]) by titania.wxnz.net (Postfix) with ESMTP id C81A51DB823C for ; Tue, 18 Aug 2009 21:44:32 +1200 (NZST) Received: from news by gonzo with local (Exim 4.69) (envelope-from ) id 1MdLEt-0007xU-NU for pgsql-sql@postgresql.org; Tue, 18 Aug 2009 21:44:23 +1200 To: pgsql-sql@postgresql.org Path: not-for-mail From: Jasen Betts Newsgroups: gmane.comp.db.postgresql.sql Subject: Re: operator contains in older Pgsql Date: 18 Aug 2009 09:44:23 GMT Organization: Dis (not Dat) Organisation Lines: 8 Message-ID: References: <4A8A5C8C.40809@gmail.com> NNTP-Posting-Host: localhost Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reversiblemaps.ath.cx 1250588663 29994 127.0.0.1 (18 Aug 2009 09:44:23 GMT) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-2 (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200908/86 X-Sequence-Number: 32995 On 2009-08-18, W. Kinastowski wrote: > I need a functionality of "@>" array operator in 8.1 Pg server. i.ex. > SELECT * FROM table WHERE array_col @> ARRAY ['xxx'] (works in 8.2, > error in 8.1) > How to performe such a query ? Is it possible ? Thanks for help. SELECT * FROM table WHERE 'xxx' = ANY( array_col )