Re: ALTER TABLE DISABLE RULE does not work inside of a transaction - Mailing list pgsql-bugs

From Tom Lane
Subject Re: ALTER TABLE DISABLE RULE does not work inside of a transaction
Date
Msg-id 9414.1230609618@sss.pgh.pa.us
Whole thread Raw
In response to ALTER TABLE DISABLE RULE does not work inside of a transaction  ("Alex Hunsaker" <badalex@gmail.com>)
List pgsql-bugs
"Alex Hunsaker" <badalex@gmail.com> writes:
> Namely it does not disable the rule... Enabling inside of the
> transaction seems to work though

Fixed, thanks ...

Index: relcache.c
===================================================================
RCS file: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v
retrieving revision 1.266.2.4
diff -c -r1.266.2.4 relcache.c
*** relcache.c    10 Aug 2008 19:02:46 -0000    1.266.2.4
--- relcache.c    30 Dec 2008 03:53:15 -0000
***************
*** 770,775 ****
--- 770,777 ----
                  return false;
              if (rule1->attrno != rule2->attrno)
                  return false;
+             if (rule1->enabled != rule2->enabled)
+                 return false;
              if (rule1->isInstead != rule2->isInstead)
                  return false;
              if (!equal(rule1->qual, rule2->qual))


            regards, tom lane

pgsql-bugs by date:

Previous
From: "Alex Hunsaker"
Date:
Subject: Re: ALTER TABLE DISABLE RULE does not work inside of a transaction
Next
From: Peter Eisentraut
Date:
Subject: Re: Bug