Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Changing a ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 3088 of 3323
Post > Topic >>

Re: Changing a trigger function

by andreas.kretschmer@[EMAIL PROTECTED] ("A. Kretschmer") Apr 24, 2008 at 11:22 AM

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

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 4 Posts in Topic:
Changing a trigger function
didiergm@[EMAIL PROTECTED  2008-04-24 11:08:12 
Re: Changing a trigger function
andreas.kretschmer@[EMAIL  2008-04-24 11:22:44 
Re: Changing a trigger function
tgl@[EMAIL PROTECTED] (T  2008-04-24 11:39:40 
Re: Changing a trigger function
terry@[EMAIL PROTECTED]   2008-04-24 05:23:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 6:06:19 CST 2008.