X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 5C34D9DC820 for ; Sat, 18 Mar 2006 03:18:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36934-09 for ; Sat, 18 Mar 2006 03:18:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp110.sbc.mail.mud.yahoo.com (smtp110.sbc.mail.mud.yahoo.com [68.142.198.209]) by postgresql.org (Postfix) with SMTP id 21B3C9DCA0A for ; Sat, 18 Mar 2006 03:18:10 -0400 (AST) Received: (qmail 93263 invoked from network); 18 Mar 2006 07:18:11 -0000 Received: from unknown (HELO discord.dyndns.org) (jeffroe996@sbcglobal.net@69.226.238.225 with plain) by smtp110.sbc.mail.mud.yahoo.com with SMTP; 18 Mar 2006 07:18:11 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by discord.dyndns.org (8.13.4/8.13.4) with ESMTP id k2I7IAfI005130; Fri, 17 Mar 2006 23:18:10 -0800 Date: Fri, 17 Mar 2006 23:18:10 -0800 (PST) From: Jeff Frost X-X-Sender: jeff@discord.dyndns.org To: Tom Lane cc: pgsql-sql@postgresql.org Subject: Re: update before drop causes OID problems in transaction? In-Reply-To: Message-ID: References: <10754.1142635969@sss.pgh.pa.us> <13574.1142663266@sss.pgh.pa.us> <13832.1142664905@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.118 required=5 tests=[AWL=0.118] X-Spam-Score: 0.118 X-Spam-Level: X-Archive-Number: 200603/264 X-Sequence-Number: 24610 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 Frost Consulting, LLC http://www.frostconsultingllc.com/ Phone: 650-780-7908 FAX: 650-649-1954