Re: Update in trigger - Mailing list pgsql-sql

From Jan Wieck
Subject Re: Update in trigger
Date
Msg-id 200204031644.g33Gixc32234@saturn.janwieck.net
Whole thread Raw
In response to Update in trigger  (Iklódi Lajos <il@mithrandir.hu>)
List pgsql-sql
[Ikl_di] Lajos wrote:
[Charset iso-8859-2 unsupported, filtering to ASCII...]
> Hi,
> I have a problem with trigger in 7.1.3.
> I have a table with after insert trigger, which is making updates in
> another table.
> I recognized that the more records I have in first table the slower is
> my insert.
> If my trigger is doing something else, for example inserts in another
> table, it becomes * 20 times * quicker, and the speed of my insert
> doesn't depend on tablesize.
> Don't I have to make updates in trigger?
   Are  there  appropriate  indexes  on the table updated in the   trigger and is the database "VACUUM ANALYZE"ed so
theindexes   get used?
 
   Even  if  it  is  an AFTER INSERT trigger, your INSERT has to   wait until the trigger finishes, because it still
hasa right   to abort the transaction.
 


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #




pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Primary and foreign key from system tables
Next
From: Bruce Momjian
Date:
Subject: Re: Logging option