Re: XLByte* usage
От | Dimitri Fontaine |
---|---|
Тема | Re: XLByte* usage |
Дата | |
Msg-id | m2vcbztv59.fsf@2ndQuadrant.fr обсуждение исходный текст |
Ответ на | Re: XLByte* usage (Andres Freund <andres@2ndquadrant.com>) |
Ответы |
Re: XLByte* usage
|
Список | pgsql-hackers |
Andres Freund <andres@2ndquadrant.com> writes: > In 2) unfortunately one has to make decision in which way to simplify > negated XLByte(LT|LE) expressions. I tried to make that choice very > careful and when over every change several times after that, so I hope > there aren't any bad changes, but more eyeballs are needed. + if (lsn > PageGetLSN(page)) + if (lsn >= PageGetLSN(page)) + if (lsn <= PageGetLSN(page)) + if (max_lsn < this_lsn) My only comment here would be that I would like it much better that the code always use the same operators, and as we read from left to right, that we pick < and <=. Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
В списке pgsql-hackers по дате отправления: