pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Porte, Alexander <Alexander.Porte@agilysys.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Upsert functions spinlock when doing insert first.
Date: Wed, 27 May 2015 20:56:15 -0400
Message-ID: <16658.1432774575@sss.pgh.pa.us> (raw)
In-Reply-To: <CY1PR0701MB199430B1080BE9462094094088CB0@CY1PR0701MB1994.namprd07.prod.outlook.com>
References: <CY1PR0701MB199430B1080BE9462094094088CB0@CY1PR0701MB1994.namprd07.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

"Porte, Alexander" <Alexander.Porte@agilysys.com> writes:
> We have simple upsert functions part of our ETL process. These upsert functions execute an insert and update from staging to datawarehouse tables and finally mark all these staged rows as processed, all within the same transaction.

> In our tests and production we have encountered problems where these functions get stuck at full CPU with zero disk I/O. We were able to repro the problem on small dataset (<100'000 rows) with a single thread. We fiddled with settings following best practices, adding large amount of memory, increasing WAL segments, etc... to no avail.

This is an interesting report, but you have not really provided enough
detail to let anyone else reproduce the problem.  Without sample data
and a script for how to call the function, we're unlikely to duplicate
your results.

Also, as a general rule, we'd rather that supporting files were attached
to the bug report, so that they get into the pgsql-bugs archives.  A month
from now when those privatepaste entries are gone, this report will mean
nothing to anyone.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <16658.1432774575@sss.pgh.pa.us>
Permalink:  ../16658.1432774575@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16658.1432774575@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, Alexander.Porte@agilysys.com
  Subject: Re: Upsert functions spinlock when doing insert first.
  In-Reply-To: <16658.1432774575@sss.pgh.pa.us>
  References: <CY1PR0701MB199430B1080BE9462094094088CB0@CY1PR0701MB1994.namprd07.prod.outlook.com> <16658.1432774575@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