X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 987ECD1B4F6 for ; Thu, 2 Oct 2003 03:18:59 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 82790-09 for ; Thu, 2 Oct 2003 00:18:10 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 58FC8D1B4FD for ; Thu, 2 Oct 2003 00:18:09 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h923I7hn011962; Wed, 1 Oct 2003 23:18:07 -0400 (EDT) To: "CN" Cc: pgsql-sql@postgresql.org Subject: Re: Creating Index In-reply-to: <20031002024019.295C37A25A@smtp.us2.messagingengine.com> References: <20031001152542.8C9C76F692@smtp.us2.messagingengine.com> <20031001110830.O40704@megazone.bigpanda.com> <20031002024019.295C37A25A@smtp.us2.messagingengine.com> Comments: In-reply-to "CN" message dated "Wed, 01 Oct 2003 18:40:19 -0800" Date: Wed, 01 Oct 2003 23:18:07 -0400 Message-ID: <11961.1065064687@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/23 X-Sequence-Number: 15423 "CN" writes: > Is creating a function that eats DATE as argument to build that index my > only solution? You haven't really explained what your problem is. In general I'd not guess that "year >= X and month >= Y" is a useful operation if Y is different from 1. You'd be selecting a very discontinuous set of dates ... regards, tom lane