Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UE6hW-000890-AD for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Mar 2013 23:27:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UE6hU-0003gz-MO for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Mar 2013 23:27:44 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UE6hU-0003gu-27 for pgsql-bugs@postgresql.org; Fri, 08 Mar 2013 23:27:44 +0000 Received: from outmail148148.authsmtp.co.uk ([62.13.148.148]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UE6hS-0007s1-05 for pgsql-bugs@postgresql.org; Fri, 08 Mar 2013 23:27:43 +0000 Received: from mail-c232.authsmtp.com (mail-c232.authsmtp.com [62.13.128.232]) by punt5.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id r28NRdoI050436 for ; Fri, 8 Mar 2013 23:27:39 GMT Received: from [172.47.23.103] (70-36-143-10.dsl.dynamic.sonic.net [70.36.143.10]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id r28NRbxb049859 for ; Fri, 8 Mar 2013 23:27:38 GMT Message-ID: <513A73E6.2070405@agliodbs.com> Date: Fri, 08 Mar 2013 15:27:34 -0800 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Issue with range types and casts? X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: c3e74e45-8847-11e2-b10b-0025903375e2 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkbIhBDJB8DSAtK Gl5dNUZcKlAHXFUf XCRcFVRcTyAgG3x3 awtSfQdeaEhJVQZi Hk9JXFFUCgRsAgIA BgEcUQZyOUdEcAAS Nw4wXnRSVEFzO0d8 QUgaRm5TYmM1bGUC WEhccB5VcVZIY01E agJiVHMPZGwHZXln QgJpKREqJihSYDtU XgFFN1sUTktDAi8k SgtKFDMjVUYMXDko eHQA X-Authentic-SMTP: 61633136333939.1019:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 70.36.143.10/23 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org select version(); version -------------------------------------------------------------------------------------------------------------- PostgreSQL 9.2.3 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4), 64-bit create table tenmin as select * from sampledata where collect_ts <@ '[2013-01-01 00:00:00,2013-01-01 00:10:00)'; ERROR: could not find range type for data type timestamp with time zone Time: 0.189 ms This seems like it ought to be fixable. Postgres has figured out that it needs to find the range type for timestamptz. Why can't it? -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs