pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brian Cox <brian.cox@ca.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: multiple threads inserting into the same table
Date: Mon, 23 Mar 2009 15:58:29 -0400
Message-ID: <1281.1237838309@sss.pgh.pa.us> (raw)
In-Reply-To: <49C7E42B.9070002@ca.com>
References: <49C7E42B.9070002@ca.com>

Brian Cox <brian.cox@ca.com> writes:
> The application log shows that 99652 rows are being inserted into 
> relation ts_stats_transet_user_daily. 5 threads are doing the inserts. 

pg_stat_activity says those five threads are doing nothing except
sitting around with open transactions.  You sure you don't have a bug on
the application side?

			regards, tom lane




view thread (9+ messages)  latest in thread

Message-ID: <1281.1237838309@sss.pgh.pa.us>
Permalink:  ../1281.1237838309@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1281.1237838309@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, brian.cox@ca.com
  Subject: Re: multiple threads inserting into the same table
  In-Reply-To: <1281.1237838309@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