pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Is there any way to speed up PL/TCL functions?
2+ messages / 2 participants
[nested] [flat]

* Is there any way to speed up PL/TCL functions?
@ 2000-07-24 05:15  Robert B. Easter <reaster@comptechnews.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Robert B. Easter @ 2000-07-24 05:15 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

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.

Is this the way it is?  Any way to reduce this pause?

-- 
			- Robert



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Is there any way to speed up PL/TCL functions?
@ 2000-07-24 06:04  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Robert B. Easter <reaster@comptechnews.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2000-07-24 06:04 UTC (permalink / raw)
  To: Robert B. Easter <reaster@comptechnews.com>; +Cc: pgsql-general@postgresql.org

"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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-07-24 06:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-07-24 05:15 Is there any way to speed up PL/TCL functions? Robert B. Easter <reaster@comptechnews.com>
2000-07-24 06:04 ` Tom Lane <tgl@sss.pgh.pa.us>

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