Re: Changing a trigger function

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: Changing a trigger function
Дата
Msg-id 20080424092243.GA15397@a-kretschmer.de
обсуждение исходный текст
Ответ на Changing a trigger function  ("Didier Gasser-Morlay" <didiergm@gmail.com>)
Ответы Re: Changing a trigger function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
am  Thu, dem 24.04.2008, um 11:08:12 +0200 mailte Didier Gasser-Morlay folgendes:
> I have found a nasty bug in one of the trigger function I did put into
> production a couple of days ago. I have a fix for it but wonder if I
> can put it into the production database with users connected on it.
>
> What would happen if someone sends an update firing that trigger
> whilst I am in the middle of updating it  via a create or update ? Do
> I need to wait for this evening or can I safely runs the update of the
> function ?

All works within a TRANSACTION. If you change the function while the old
version are running for an other transaction, the other transaction has
the old version until the end.

In other words: you can change the function without problems.


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

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

Предыдущее
От: "Didier Gasser-Morlay"
Дата:
Сообщение: Limiting the number of connections for one user
Следующее
От: Terry Lee Tucker
Дата:
Сообщение: Re: Changing a trigger function