Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 02AD3B5DBCA for ; Sat, 16 Jul 2011 23:13:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 48432-05 for ; Sun, 17 Jul 2011 02:13:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm17-vm0.bullet.mail.bf1.yahoo.com (nm17-vm0.bullet.mail.bf1.yahoo.com [98.139.213.157]) by mail.postgresql.org (Postfix) with SMTP id C52CFB5DBC4 for ; Sat, 16 Jul 2011 23:13:50 -0300 (ADT) Received: from [98.139.212.152] by nm17.bullet.mail.bf1.yahoo.com with NNFMP; 17 Jul 2011 02:13:50 -0000 Received: from [98.139.211.205] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 17 Jul 2011 02:13:50 -0000 Received: from [127.0.0.1] by smtp214.mail.bf1.yahoo.com with NNFMP; 17 Jul 2011 02:13:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1310868826; bh=6W2h/SkMMq/AzdtYk3JPfIOQfxU15ML4BON5r2/99ss=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ib7h/OmMv6uQnf9uaKjoYMbpw9XPYNfGhMlIyzrky76dqtUuc6MmDWO3wRiMBgJP+swwe/Ri5iTVUOVivqNdg6UmAT3O+m4MeQPVZbsVVUdlFJwlDWaPvWAv3HER1yhjbDPxaAvMNClKvlDC8l7/7zqgqq5gwaKo1Ykpl8finsw= X-Yahoo-Newman-Id: 2528.10470.bm@smtp214.mail.bf1.yahoo.com Received: from [192.168.206.5] (lhofhansl@67.170.234.149 with plain) by smtp214.mail.bf1.yahoo.com with SMTP; 16 Jul 2011 19:13:20 -0700 PDT X-Yahoo-SMTP: YmezqLWswBDx0ai534H100MJuqGzDQ-- X-YMail-OSG: CTW5UrkVM1lz7zKwV9vAVWV1EAEDk3YJ9lkDsAktMgFZibT zzDT2bbve31tlQ7EEQtT.yVTLSZeExH6t_a8Fc1fk.VLCFjw8yEJE7dssk7d rDphnWc1mvKI21M4Td6Euud272XKOHoahfXj4MQGx1fa4xLob4kPoXFGU7TL TrlHu09skpiFRY_SKwPjR7y4vbzrvzwsjfGHsgAEexFKD1m3ygeuCLBNaA4I qk_oWomYhwHmvgu0NbeitYJNJ3Ns_nd6tU6niAluN7.LiRzM2Dojc0ZTBJrF 8oPIaLg3MvmSPsbf8odbg5jGZRDmbgI_Dn4ORtfxm17QLb_6zFGRubW6H9li sD0XyShkSoaGSY6imJT0ubBI- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4E22451F.9070803@yahoo.com> Date: Sat, 16 Jul 2011 19:12:47 -0700 From: lars User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Thunderbird/3.1.11 MIME-Version: 1.0 To: Tom Lane CC: Kevin Grittner , Ivan Voras , pgsql-performance@postgresql.org Subject: Re: UPDATEDs slowing SELECTs in a fully cached database References: <4E16479D.3050605@yahoo.com> <4E1A0CBC.6090009@yahoo.com> <4E1A31AB.9010201@postnewspapers.com.au> <1310359653.80687.YahooMailRC@web121705.mail.ne1.yahoo.com> <4E1AEDAB020000250003F1C3@gw.wicourts.gov> <4E1B41EA.90104@yahoo.com> <4E1B05CC020000250003F1E6@gw.wicourts.gov> <4E1B810D.4070404@yahoo.com> <4E1B90AF.1020408@yahoo.com> <4E1C9A05.7060005@yahoo.com> <4E1C5563020000250003F252@gw.wicourts.gov> <4E1CA8E9.6090108@yahoo.com> <4E1CB56E.7080801@yahoo.com> <4E1D697C020000250003F29A@gw.wicourts.gov><4E1D697C020000250003F29A@gw.wicourts.gov> <4752.1310570261@sss.pgh.pa.us> <4E1DCE81020000250003F2DC@gw.wicourts.gov><4E1DCE81020000250003F2DC@gw.wicourts.gov> <11679.1310595677@sss.pgh.pa.us> <4E1EB165020000250003F2FC@gw.wicourts.gov> <464.1310658420@sss.pgh.pa.us> In-Reply-To: <464.1310658420@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=0.001 X-Spam-Level: X-Archive-Number: 201107/169 X-Sequence-Number: 44381 On 07/14/2011 08:47 AM, Tom Lane wrote: > > The implementation I was imagining was to define another bit in the info > parameter for XLogInsert, say XLOG_NON_TRANSACTIONAL. This could be a > high-order bit that would not go to disk. Anytime it was *not* set, > XLogInsert would set a global boolean that would remember that the > current transaction wrote a transactional WAL record. This is the > right default since the vast majority of call sites are writing records > that we would want to have flushed at commit. There are just a couple > of places that would need to be changed to add this flag to their calls. > > regards, tom lane > If you have a patch in mind I'm happy to test it on my setup and report back. -- Lars