pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem with pltcl trigger
2+ messages / 2 participants
[nested] [flat]

* Problem with pltcl trigger
@ 2005-05-13 16:15  Saulius Malakauskas <saulius.malakauskas@singleton-labs.lt>
  0 siblings, 1 reply; 2+ messages in thread

From: Saulius Malakauskas @ 2005-05-13 16:15 UTC (permalink / raw)
  To: pgsql-admin

We have problem with pltcl triggers.
We have table with unique field on which executes a emty pltcl trigger 
after update, insert and delete.
Situation is:
1. Starting new seassion;
2. Executing first update query without exceptions;
3. Executing second update query with unique exception;
4. Closing seassion.

Sometimes, when this seasion repeated many times without waiting, 
seasion closes abnormaly postmaster process is defunct.
DEBUG log for defunct seasion has only this difference from normal seassion:
--------------------------------------------------------------------------------------------
DEBUG:  reaping dead processes
DEBUG:  child process (PID 20805) exited with exit code 0
---------------------------------------------------------------------------------------------
And the are no more exceptions or smth.

When trigger is dropped or function is plpgsql seassions closes normaly. 
Pltcl triggers would be used later for column changes logging, but this 
abnormal situation stops our works.
We try change trigger cal before or after but situation was same.

Our system parameters are:
   * debian - kernel 2.4.27-8
   * pgsql 7.4.7-7
   * tcl 8.4.9-1
   * libpgtcl 7.4.7-2

Can you help us in this situation, or give some advice?

Saulius M.



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

* Re: Problem with pltcl trigger
@ 2005-05-17 16:49  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Saulius Malakauskas <saulius.malakauskas@singleton-labs.lt>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2005-05-17 16:49 UTC (permalink / raw)
  To: Saulius Malakauskas <saulius.malakauskas@singleton-labs.lt>; +Cc: pgsql-admin

Saulius Malakauskas <saulius.malakauskas@singleton-labs.lt> writes:
> We have problem with pltcl triggers.

Can you provide a self-contained example?  It's difficult to say
anything without more information.

			regards, tom lane



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


end of thread, other threads:[~2005-05-17 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13 16:15 Problem with pltcl trigger Saulius Malakauskas <saulius.malakauskas@singleton-labs.lt>
2005-05-17 16:49 ` 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