Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdKJK-0006fs-W9 for pgsql-sql@arkaria.postgresql.org; Tue, 27 Nov 2012 12:30:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TdKJK-0006Do-H0 for pgsql-sql@arkaria.postgresql.org; Tue, 27 Nov 2012 12:30:46 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdKJJ-0006Dj-Pl for pgsql-sql@postgresql.org; Tue, 27 Nov 2012 12:30:45 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdKJI-0006MD-LQ for pgsql-sql@postgresql.org; Tue, 27 Nov 2012 12:30:45 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TdKJQ-00057h-HA for pgsql-sql@postgresql.org; Tue, 27 Nov 2012 13:30:52 +0100 Received: from 217.110.94.121 ([217.110.94.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Nov 2012 13:30:52 +0100 Received: from spam_eater by 217.110.94.121 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Nov 2012 13:30:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Thomas Kellerer Subject: Re: Using regexp_matches in the WHERE clause Date: Tue, 27 Nov 2012 13:30:59 +0100 Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.121 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Pavel Stehule, 27.11.2012 13:26: >> My question is: why I cannot use regexp_matches() in the WHERE clause, even >> when the result is clearly an integer value? >> > > use a ~ operator instead > So that means, regexp_matches cannot be used as an expression in the WHERE clause? Regards Thomas -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql