X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1DC5CD1B195 for ; Tue, 3 Aug 2004 02:06:54 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84123-10 for ; Tue, 3 Aug 2004 05:06:45 +0000 (GMT) Received: from stark.xeocode.com (gsstark.mtl.istop.com [66.11.160.162]) by svr1.postgresql.org (Postfix) with ESMTP id D2598D1B182 for ; Tue, 3 Aug 2004 02:06:43 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1BrrVY-0004yQ-00; Tue, 03 Aug 2004 01:06:40 -0400 To: pgsql-hackers@postgresql.org Subject: TODO Items From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 03 Aug 2004 01:06:40 -0400 In-Reply-To: <200408030208.i73280J26911@candle.pha.pa.us> Message-ID: <874qnkolnj.fsf@stark.xeocode.com> Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/94 X-Sequence-Number: 57066 Bruce Momjian writes: > TODO item? On that note several prior conversations I had here ended with WIBNI conclusions that really ought to be TODO items, in my humble opinion. Two come to mind off the top of my head resulting in: . "SELECT * FROM x JOIN y USING (b) WHERE a=?" could use an index on y(a,b) since for a constant value of "a" the index traversal would be effectively equivalent just be "b". This could result in an efficient merge join avoiding an unnecessary sort. . The semantics for row-value expressions is wrong. (a,b) < (x,y) should be true if a behaviour (ie btree indexable behaviour). . Allow multi-column indexes to be used to optimize row-value expressions. Ie, allow a btree index on a,b to be used to execute an expression like (a,b) < (x,y). -- greg