X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 363249DC806 for ; Mon, 9 Jan 2006 11:30:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86693-04 for ; Mon, 9 Jan 2006 11:30:25 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by postgresql.org (Postfix) with ESMTP id 9D35F9DC83D for ; Mon, 9 Jan 2006 11:30:17 -0400 (AST) Received: by wproxy.gmail.com with SMTP id i28so2648263wra for ; Mon, 09 Jan 2006 07:30:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=W11kni/t21JDT7lM1EB+2ogPXzV8Ca4A7Qr/D2DtQIcRexynaQNYDkkc1Vs/0ZrbPs9DfriSHO0JBbJgkoYyvpSwIcIRtVU3whjNeapO2PWdbXZ0MKanq3HU0Cj92hkGoB78qMjTlIoH7DnyU1sgtDzdvQTgEI071RHqTe94SS8= Received: by 10.54.84.1 with SMTP id h1mr8197069wrb; Mon, 09 Jan 2006 07:30:21 -0800 (PST) Received: by 10.54.92.14 with HTTP; Mon, 9 Jan 2006 07:30:21 -0800 (PST) Message-ID: Date: Mon, 9 Jan 2006 10:30:21 -0500 From: Jaime Casanova To: Alessandro Baretta Subject: Re: 500x speed-down: Wrong query plan? Cc: pgsql-performance@postgresql.org In-Reply-To: <43C26A5F.7040702@barettadeit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43C26A5F.7040702@barettadeit.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.081 required=5 tests=[AWL=0.081] X-Spam-Score: 0.081 X-Spam-Level: X-Archive-Number: 200601/58 X-Sequence-Number: 16536 On 1/9/06, Alessandro Baretta wrote: > Hello gentlemen, > > Although this is my first post on the list, I am a fairly experienced Pos= tgreSQL > programmer. I am writing an ERP application suite using PostgreSQL as the > preferred DBMS. Let me state that the SQL DDL is automatically generated = by a > CASE tool from an ER model. The generated schema contains the appropriate > primary key and foreign key constraints, as defined by the original ER mo= del, as > well as "reverse indexes" on foreign keys, allowing (in theory) rapid bac= kward > navigation of foreign keys in joins. > > Let me show a sample join of two tables in the database schema. The infor= mation > provided is quite extensive. I'm sorry for that, but I think it is better= to > provide the list with all the relevant information. > > Package: postgresql-7.4 maybe, because you are in developing state, you can start to think in upgrading to 8.1 -- regards, Jaime Casanova (DBA: DataBase Aniquilator ;)