Re: update before drop causes OID problems in transaction? - Mailing list pgsql-sql

From Richard Huxton
Subject Re: update before drop causes OID problems in transaction?
Date
Msg-id 441EE6C3.3050300@archonet.com
Whole thread Raw
In response to Re: update before drop causes OID problems in transaction?  (Jeff Frost <jeff@frostconsultingllc.com>)
List pgsql-sql
Jeff Frost wrote:
> 
>> Another problem might well be with your plpgsql trigger function. If 
>> you're dropping/re-creating credit_card_audit then that'll give you 
>> the error you're seeing.
> 
> The trigger shouldn't be firing at all in this scenario as it is on 
> credit_card and not credit_card_audit.  Are you saying that it could 
> cause this sort of problem even though it doesn't fire?

Actually, my last reply isn't quite accurate. Looking at it, you do 
update "credit_card_audit" from within the trigger.

So, it can cause a problem if called, but if it isn't called then it 
will not.

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: update before drop causes OID problems in transaction?
Next
From: Tom Lane
Date:
Subject: Re: have you feel anything when you read this ?