pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Enno Wein <ennowein@yahoo.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15115: temporary AND unlogged tables for parallel db import
Date: Fri, 16 Mar 2018 13:00:58 -0400
Message-ID: <24377.1521219658@sss.pgh.pa.us> (raw)
In-Reply-To: <fb944b97-35b6-5a8b-a079-ff7a53dd830c@yahoo.com>
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>
	<fb944b97-35b6-5a8b-a079-ff7a53dd830c@yahoo.com>

Enno Wein <ennowein@yahoo.com> 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




view thread (11+ messages)  latest in thread

Message-ID: <24377.1521219658@sss.pgh.pa.us>
Permalink:  ../24377.1521219658@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24377.1521219658@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ennowein@yahoo.com, andrew@tao11.riddles.org.uk
  Subject: Re: BUG #15115: temporary AND unlogged tables for parallel db import
  In-Reply-To: <24377.1521219658@sss.pgh.pa.us>
  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> <fb944b97-35b6-5a8b-a079-ff7a53dd830c@yahoo.com> <24377.1521219658@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox