X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 44399D1B1A9 for ; Mon, 28 Jun 2004 14:02:44 -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 85498-05 for ; Mon, 28 Jun 2004 17:02:39 +0000 (GMT) Received: from math.uchicago.edu (math.uchicago.edu [128.135.72.38]) by svr1.postgresql.org (Postfix) with ESMTP id 6ABCBD1B174 for ; Mon, 28 Jun 2004 14:02:36 -0300 (ADT) Received: from billnotebook (wireless-199-208.uchicago.edu [128.135.199.208]) by math.uchicago.edu (8.12.10/8.12.10) with ESMTP id i5SH2YfL013269 for ; Mon, 28 Jun 2004 12:02:36 -0500 Message-Id: <200406281702.i5SH2YfL013269@math.uchicago.edu> From: "Bill" To: Subject: Re: Query performance Date: Mon, 28 Jun 2004 12:02:40 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <40DFE163.8000107@archonet.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcRc8SMpS+jFDE1lQ1KaBvEuUe1v6AAQEUUg 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: 200406/276 X-Sequence-Number: 7334 Ok....so here lies the output of oclh (i.e "\d oclh") Table "public.oclh" Column | Type | Modifiers --------+-----------------------+------------------------------- symbol | character varying(10) | not null default '' date | date | not null default '0001-01-01' open | numeric(12,2) | not null default '0.00' close | numeric(12,2) | not null default '0.00' low | numeric(12,2) | not null default '0.00' high | numeric(12,2) | not null default '0.00' Indexes: symbol_2_oclh_index btree (symbol, date), symbol_oclh_index btree (symbol, date) -----Original Message----- From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Richard Huxton Sent: Monday, June 28, 2004 4:14 AM To: Bill Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] Query performance Bill wrote: > Actually, I have some queries that are slow, however I was wondering if you > could help me write a query that is rather simple, but I, as a true database > novice, can't seem to conjure. So we have stocks, as I have previously > said, and I have a huge table which contains all of the opening and closing > prices of some stocks from each day. Schemas, Bill - show us your table definitions so people can see exactly where they stand. -- Richard Huxton Archonet Ltd ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster