Re: ALTER TABLE DISABLE RULE does not work inside of a transaction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ALTER TABLE DISABLE RULE does not work inside of a transaction
Дата
Msg-id 9414.1230609618@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ALTER TABLE DISABLE RULE does not work inside of a transaction  ("Alex Hunsaker" <badalex@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Alex Hunsaker"
Дата:
Сообщение: Re: ALTER TABLE DISABLE RULE does not work inside of a transaction
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Bug