From: Craig Ringer <ringerc@ringerc.id.au>
To: Eileen <hey_here@yahoo.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: JDBC 5 million function insert returning Single Transaction Lock Access Exclusive Problem
Date: Sat, 01 Sep 2012 08:43:49 +0800
Message-ID: <50415A45.4060506@ringerc.id.au> (raw)
In-Reply-To: <1346308496.83000.YahooMailNeo@web141101.mail.bf1.yahoo.com>
References: <1346308496.83000.YahooMailNeo@web141101.mail.bf1.yahoo.com>
On 08/30/2012 02:34 PM, Eileen wrote:
> In my case, a few problems occurred. Number 1, the process ran at least
> 8 hours and never finished.
You're on a very old version of Pg, so you're missing out on a lot of
improvements made since then.
One of them is, if I recall correctly, an improvement to exception
handling efficiency. Does your function use BEGIN ... EXCEPTION to (say)
handle data validation errors?
--
Craig Ringer
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: ringerc@ringerc.id.au, hey_here@yahoo.com
Subject: Re: JDBC 5 million function insert returning Single Transaction Lock Access Exclusive Problem
In-Reply-To: <50415A45.4060506@ringerc.id.au>
* 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