From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Jenny Zhang <jenny@osdl.org>
Cc: perf-pgsql <pgsql-performance@postgresql.org>
Cc: pgsql-general@postgresql.org
Subject: Re: update slows down in pl/pgsql function
Date: Tue, 16 Dec 2003 15:54:34 -0800 (PST)
Message-ID: <20031216155342.J28271@megazone.bigpanda.com> (raw)
In-Reply-To: <1071618760.10925.17.camel@ibm-a.pdx.osdl.net>
References: <1071618760.10925.17.camel@ibm-a.pdx.osdl.net>
On Tue, 16 Dec 2003, Jenny Zhang wrote:
> I have stored procedure written in pl/pgsql which takes about 13 seconds
> to finish. I was able to identify that the slowness is caused by one
> update SQL:
>
> UPDATE shopping_cart SET sc_sub_total=sc_subtotal, sc_date=now()
> WHERE sc_id=sc_id;
Umm, is that exactly the condition you're using? Isn't that going to
update the entire table?
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: sszabo@megazone.bigpanda.com, jenny@osdl.org, pgsql-general@postgresql.org
Subject: Re: update slows down in pl/pgsql function
In-Reply-To: <20031216155342.J28271@megazone.bigpanda.com>
* 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