David Rowley <david.row...@2ndquadrant.com> writes:
> On 1 October 2018 at 06:18, Tom Lane <t...@sss.pgh.pa.us> wrote:
>> + for (slockmode = lockmode + 1;
>> +      slockmode <= AccessExclusiveLock;
>> +      slockmode++)

> So would it not be better to add the following to lockdefs.h?
> #define MaxLockLevel 8
> then use that to terminate the loop.

Good idea, will do.

                        regards, tom lane

Reply via email to