Re: [PATCH] fix DROP OPERATOR to reset links to itself oncommutator and negator
В списке pgsql-hackers по дате отправления:
| От | Yury Zhuravlev |
|---|---|
| Тема | Re: [PATCH] fix DROP OPERATOR to reset links to itself oncommutator and negator |
| Дата | |
| Msg-id | 8d4eaf35-091c-4171-84fb-e67283f4848f@postgrespro.ru обсуждение исходный текст |
| Ответ на | Re: [PATCH] fix DROP OPERATOR to reset links to itself on commutator and negator (Roma Sokolov <sokolov.r.v@gmail.com>) |
| Список | pgsql-hackers |
Roma Sokolov wrote: > See v2 of the patch attached. Hello. I have a stylistic comments. Sometimes you forget a space: + replaces[Anum_pg_operator_oprcom - 1] =true; or use tab insted space: + if (OidIsValid(op->oprnegate) || + (OidIsValid(op->oprcom) && operOid != op->oprcom)) + OperatorUpd(operOid, + operOid == op->oprcom ? InvalidOid : op->oprcom, + op->oprnegate, + true); And I think if you make this logic into a separate function, it is possible to simplify the code. OperatorUpd function is too complex. Also better to add comments to the tests. The rest seems good. PS I here thought it would be possible to print operators that have been changed? -- Yury Zhuravlev Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера