David Rowley <[email protected]> writes: > On 1 October 2018 at 06:18, Tom Lane <[email protected]> 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
