Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZnV6x-0006lj-7f for pgsql-performance@arkaria.postgresql.org; Sat, 17 Oct 2015 17:17:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZnV6v-0000oK-RO for pgsql-performance@arkaria.postgresql.org; Sat, 17 Oct 2015 17:17:37 +0000 Received: from makus.postgresql.org ([174.143.35.229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZnV5I-0007Q2-VI for pgsql-performance@postgresql.org; Sat, 17 Oct 2015 17:15:57 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZnV3A-0008Rv-VX for pgsql-performance@postgresql.org; Sat, 17 Oct 2015 17:13:47 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 128F0860003; Sat, 17 Oct 2015 19:13:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC6421.dip0.t-ipconnect.de [93.220.100.33]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id ED524860001; Sat, 17 Oct 2015 19:13:38 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 6236B1020D0; Sat, 17 Oct 2015 19:13:38 +0200 (CEST) Date: Sat, 17 Oct 2015 19:13:38 +0200 From: Andres Freund To: Jim Nasby Cc: "Graeme B. Bell" , Laurent Martelli , "pgsql-performance@postgresql.org list" Subject: Re: One long transaction or multiple short transactions? Message-ID: <20151017171338.GB28038@awork2.anarazel.de> References: <002a01d0ffe4$2c630e60$85292b20$@stonebanks.ca> <003d01d0ffe4$9ae8f890$d0bae9b0$@stonebanks.ca> <00fe01d10159$8e731980$ab594c80$@stonebanks.ca> <56176288.9040500@enercoop.org> <884892BF-DD42-4E0A-8973-3A691E25E450@skogoglandskap.no> <56226889.4050609@BlueTreble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56226889.4050609@BlueTreble.com> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 2015-10-17 10:26:01 -0500, Jim Nasby wrote: > Except inserts *do* take a lot of locks, just not user-level locks. > Operations like finding a page to insert into, seeing if that page is in > shared buffers, loading the page into shared buffers, modifying a shared > buffer, getting the relation extension lock if you need to add a new page. > Then there's a whole pile of additional locking you could be looking at for > inserting into any indexes. > > Now, most of the locks I described up there are transaction-aware Missing *not*? -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance