Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UUE5o-0006MN-Tr for pgsql-sql@arkaria.postgresql.org; Mon, 22 Apr 2013 10:35:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UUE5o-00080K-8E for pgsql-sql@arkaria.postgresql.org; Mon, 22 Apr 2013 10:35:28 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UUE5n-00080F-IG for pgsql-sql@postgresql.org; Mon, 22 Apr 2013 10:35:27 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UUE5k-0002iW-6B for pgsql-sql@postgresql.org; Mon, 22 Apr 2013 10:35:27 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UUE5h-0003cG-37 for pgsql-sql@postgresql.org; Mon, 22 Apr 2013 12:35:21 +0200 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 ; Mon, 22 Apr 2013 12:35:21 +0200 Received: from spam_eater by 217.110.94.121 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Apr 2013 12:35:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Thomas Kellerer Subject: Re: check for overlapping time intervals Date: Mon, 22 Apr 2013 12:36:22 +0200 Lines: 13 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.0 (+) 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 Wolfgang Meiners, 22.04.2013 12:19: > Is there a simpler way to check for overlapping timeintervals? I ask > this question, because i have more similar tables with similar layout > and would have to write similar functions again and again. Do you have the possibility to upgrade to 9.2? The range types introduced with 9.2 seem to be *exactly* what you need. 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