Trigger functions

Поиск
Список
Период
Сортировка
От Marc Drouin
Тема Trigger functions
Дата
Msg-id F4DA80054BE0604A9E05C43B1CA905B202EA2C@serveur.fondex.local
обсуждение исходный текст
Ответы Re: Trigger functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general

Hi group,

I managed to set up a trigger function and trigger in my database.  At this time its very rudimentary but I find that it seems to slow down the insert procees quite a bit.  I'm new to postgresql and database servers in general so i'm not sure wheter this is normal or not.

The function is triggered on insert and is supposed to fill a field in the table based on three other fields of the same table (ex: field D = Field A X Field B X Field C).  The addition of the trigger to teh table has slowed down the insert procedd considerably.  It takes approximatly two second for a simple insert.

Can someone help me with that.

Like I said i'm new to all this so please be indulgent.

Marc

В списке pgsql-general по дате отправления:

Предыдущее
От: Peter Choe
Дата:
Сообщение: stored procedure
Следующее
От: Tom Lane
Дата:
Сообщение: Re: lo_copy()