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 3064C52C80 for ; Mon, 18 Jul 2005 04:51:46 -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 20466-08 for ; Mon, 18 Jul 2005 07:51:41 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by svr1.postgresql.org (Postfix) with ESMTP id CB33952C7F for ; Mon, 18 Jul 2005 04:51:39 -0300 (ADT) Received: by zproxy.gmail.com with SMTP id i11so818446nzh for ; Mon, 18 Jul 2005 00:51:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Sd+AwLmS/DrRJCR9gMHYldjQyCHPHwtwJihIExzVpY3aIpAPAoHMZ/CnweHLU9Ecek41TcKQ59XXNH8bEDurlZpwGUpWFDobjHrmRKkhmC/HVUQsasoUWwImVMlrOV5oW9ae5f4xih9oYgStlBjEieX4jgPHP3GCQu0LUed3aLg= Received: by 10.36.220.67 with SMTP id s67mr3790563nzg; Mon, 18 Jul 2005 00:51:41 -0700 (PDT) Received: by 10.36.22.20 with HTTP; Mon, 18 Jul 2005 00:51:41 -0700 (PDT) Message-ID: <758d5e7f050718005164cbe9a4@mail.gmail.com> Date: Mon, 18 Jul 2005 09:51:41 +0200 From: Dawid Kuroczko Reply-To: Dawid Kuroczko To: Bruno Wolff III , Dan Harris , pgsql-performance@postgresql.org Subject: Re: slow joining very large table to smaller ones In-Reply-To: <20050715164458.GA26178@wolff.to> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <46AF8F35-B735-4DFA-BA0A-AC82B5DA3CCE@drivefaster.net> <42D687E5.7080202@arbash-meinel.com> <20050715164458.GA26178@wolff.to> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.614 tagged_above=0 required=5 tests=AWL, FROM_ENDS_IN_NUMS, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/255 X-Sequence-Number: 13496 On 7/15/05, Bruno Wolff III wrote: > On Thu, Jul 14, 2005 at 16:29:58 -0600, > Dan Harris wrote: > > > > Ok, I tried this one. My ssh keeps getting cut off by a router > > somewhere between me and the server due to inactivity timeouts, so > > all I know is that both the select and explain analyze are taking > > over an hour to run. Here's the explain select for that one, since > > that's the best I can get. >=20 > Are you using NAT at home? That's probably where the issue is. If you > have control of that box you can probably increase the timeout to a > couple of hours. Some versions of ssh have such a configuration option (in .ssh/config): Host * ServerAliveInterval 600 ...it means that ssh will send a "ping" packet to a sshd every 10 minutes of inactivity. This way NAT will see activity and won't kill the session. I'm using OpenSSH_4.1p1 for this... Oh, and it doesn't have anything to do with TCP keep alive, which is rather for finding dead connections than keeping connections alive. ;) Regards, Dawid