On Fri, 17 Mar 2006, Jeff Frost wrote:
> I'll try that and see if that makes the difference, since we're recreating
> (create or replace) that function in that transaction anyway, but perhaps
> that needs to happen before the update.
I added this at the top of the transaction:
DROP FUNCTION public.audit_credit_card ();
and had to move the drop trigger above it, so the order looked like so:
BEGIN;
DROP RULE credit_card_audit_no_update ON credit_card_audit;
DROP TRIGGER audit_credit_card ON credit_card;
DROP FUNCTION public.audit_credit_card ();
Same result:
psql:transaction-test-case.sql:212: ERROR: could not open relation with OID
29976142
--
Jeff Frost, Owner <jeff@frostconsultingllc.com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954