From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert B. Easter <reaster@comptechnews.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Is there any way to speed up PL/TCL functions?
Date: Mon, 24 Jul 2000 02:04:57 -0400
Message-ID: <23362.964418697@sss.pgh.pa.us> (raw)
In-Reply-To: <00072401305903.00253@comptechnews>
References: <00072401305903.00253@comptechnews>
"Robert B. Easter" <reaster@comptechnews.com> writes:
> I'm using some PL/TCL functions and triggers to do some special
> inserts. When I do an insert that uses these procedures, I get the
> "INSERT xxxxxx 1" response back immediately, but then there is a pause
> before the next query is executed. It appears as if the PL/TCL runs
> fast but after its finished it has to spend a significant amount of
> time cleaning up before the next query can run.
That doesn't make any sense as stated, but it might be that your
triggers are "deferred" (execute-at-commit). I believe the INSERT
command response gets sent before transaction commit, so what's
probably really happening is just that your trigger is slow.
> Is this the way it is? Any way to reduce this pause?
Hard to say without knowing what your trigger is doing.
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, reaster@comptechnews.com, pgsql-general@postgresql.org
Subject: Re: Is there any way to speed up PL/TCL functions?
In-Reply-To: <23362.964418697@sss.pgh.pa.us>
References: <00072401305903.00253@comptechnews> <23362.964418697@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