X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 982EF475F16 for ; Wed, 23 Apr 2003 16:21:30 -0400 (EDT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by postgresql.org (Postfix) with ESMTP id A5156475ADE for ; Wed, 23 Apr 2003 16:21:29 -0400 (EDT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 2982982; Wed, 23 Apr 2003 13:21:27 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Subject: Re: Why is seq search preferred here by planner? Date: Wed, 23 Apr 2003 13:21:06 -0700 User-Agent: KMail/1.4.3 Cc: , References: <1220.219.65.235.51.1051114881.squirrel@mail.trade-india.com> <200304231253.52051.josh@agliodbs.com> <1386.219.65.253.85.1051128809.squirrel@mail.trade-india.com> In-Reply-To: <1386.219.65.253.85.1051128809.squirrel@mail.trade-india.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304231321.06443.josh@agliodbs.com> X-Spam-Status: No, hits=-32.4 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/353 X-Sequence-Number: 13054 Mallah, > Got it , you mean to say userid being pkey is affecting the method of > implicit join being made by the update stmt. More to the point, the PKey index doesn't help the db retrieve the rows to= =20 join at all. It might if only 1,000 rows matched, but not with 150,000=20 matching rows. -Josh Berkus