Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewsj2-0002Jy-JT for pgsql-bugs@arkaria.postgresql.org; Fri, 16 Mar 2018 17:01:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewsj1-0005em-Ct for pgsql-bugs@arkaria.postgresql.org; Fri, 16 Mar 2018 17:01:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewsj1-0005ed-3c for pgsql-bugs@lists.postgresql.org; Fri, 16 Mar 2018 17:01:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewsiy-0000ou-IM for pgsql-bugs@lists.postgresql.org; Fri, 16 Mar 2018 17:01:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2GH0wRs024378; Fri, 16 Mar 2018 13:00:58 -0400 From: Tom Lane To: Enno Wein cc: Andrew Gierth , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15115: temporary AND unlogged tables for parallel db import In-reply-to: References: <152120772359.1215.16174625790404871093@wrigleys.postgresql.org> <878tasi0p2.fsf@news-spur.riddles.org.uk> <5d01c4db-6ca0-c780-870d-07a0c08added@yahoo.com> <874llghz6x.fsf@news-spur.riddles.org.uk> <33a6e05e-5dee-856e-d2a3-427eb190cc1e@yahoo.com> <87zi38gjrd.fsf@news-spur.riddles.org.uk> <27167.1521213903@sss.pgh.pa.us> Comments: In-reply-to Enno Wein message dated "Fri, 16 Mar 2018 09:11:22 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24376.1521219658.1@sss.pgh.pa.us> Date: Fri, 16 Mar 2018 13:00:58 -0400 Message-ID: <24377.1521219658@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Enno Wein writes: > Every session (72 for now) creates and drops several (temp-) tables and > indexes. Every session runs for about 30min, then does a final insert > and exits afterwards. > Depending on parallelism chosen, we run 8, 16 or 24 sessions in parallel. > The main, (global-) table which persists has been declared as either > logged or unlogged, there is much WAL traffic in any case. That still sounds like it'd just add up to a few temp table creations/ deletions per minute, which would not account for any huge volume of WAL traffic. I'm suspicious that somewhere you've got activity going into a table that you forgot to make temp or unlogged. You might grab pg_xlogdump or a logical decoding tool and look into the WAL stream to see exactly what's going by. regards, tom lane