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 4 of 4 Topic 3088 of 3323
Post > Topic >>

Re: Changing a trigger function

by terry@[EMAIL PROTECTED] (Terry Lee Tucker) Apr 24, 2008 at 05:23 AM

On Thursday 24 April 2008 05:08, Didier Gasser-Morlay wrote:
> 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 ?
>
> I know that several other databases would reject the update (Sybase,
> Firebird for example) but I am too new to PostgresSQL to know what
> would happen in such a situation
>
>
>
> Didier

You do not have to wait to load the trigger. If some process accesses the 
trigger in the midst of your loading it, it will be handled in the same
way 
as someone reading a set of records from a table while another is
inserting 
or updating records in the same table; that is, the data as it existed
before 
the transaction started would be used. Loading the trigger will behave the

same way. We've done this many times.
-- 
Terry Lee Tucker
Turbo's IT Manager
Turbo, division of Ozburn-Hessey Logistics
2251 Jesse Jewell Pkwy NE
Gainesville, GA 30501
Tel: (336) 372-6812  Fax: (336) 372-6812  Cell: (336) 404-6987
terry@[EMAIL PROTECTED]
 
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 5:32:38 CST 2008.