Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 81D3A6328CB for ; Fri, 9 Oct 2009 14:50:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 30390-08 for ; Fri, 9 Oct 2009 17:50:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og125.obsmtp.com (exprod7og125.obsmtp.com [64.18.2.28]) by mail.postgresql.org (Postfix) with SMTP id 4803763497E for ; Fri, 9 Oct 2009 14:50:38 -0300 (ADT) Received: from source ([209.85.220.220]) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKSs937GLjfHJI9Jirjgak80YvUB1EOBxy@postini.com; Fri, 09 Oct 2009 10:50:38 PDT Received: by fxm20 with SMTP id 20so6083088fxm.38 for ; Fri, 09 Oct 2009 10:50:36 -0700 (PDT) Received: by 10.103.81.35 with SMTP id i35mr1242983mul.43.1255110636254; Fri, 09 Oct 2009 10:50:36 -0700 (PDT) Received: from ?192.168.193.119? ([63.118.221.202]) by mx.google.com with ESMTPS id 23sm41490mum.6.2009.10.09.10.50.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Oct 2009 10:50:34 -0700 (PDT) Message-ID: <4ACF77E7.6040603@enterprisedb.com> Date: Fri, 09 Oct 2009 13:50:31 -0400 From: Heikki Linnakangas Organization: EnterpriseDB User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: Simon Riggs CC: pgsql-hackers Subject: Re: Hot Standby on git References: <1253958559.4449.833.camel@ebony.2ndQuadrant> <4ABF4522.6060601@enterprisedb.com> <1254743455.4691.153.camel@ebony.2ndQuadrant> <4ACA6EDE.4020407@enterprisedb.com> <1254813572.26302.38.camel@ebony.2ndQuadrant> In-Reply-To: <1254813572.26302.38.camel@ebony.2ndQuadrant> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-6.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4 X-Spam-Level: X-Archive-Number: 200910/624 X-Sequence-Number: 147436 Simon Riggs wrote: >> Tom Lane wrote: >>> [ scratches head ... ] Why is hot standby messing with this sort of >>> thing at all? It sounds like a performance optimization that should >>> be considered separately, and *later*. >> Yeah, I too considered just ripping it out. Simon is worried that >> locking all the lock partitions and scanning the locks table can take a >> long time. We do that in the master, while holding both ProcArrayLock >> and XidGenLock in exclusive mode (hmm, why is shared not enough?), so >> there is some grounds for worry. OTOH, it's only done once per checkpoint. > > I could live with ripping it out, but what we have now doesn't make > sense, to me. Ok, let's just rip it out for now. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com