Re: executor relation handling - Mailing list pgsql-hackers

From Tom Lane
Subject Re: executor relation handling
Date
Msg-id 31971.1538362158@sss.pgh.pa.us
Whole thread Raw
In response to Re: executor relation handling  (David Rowley <david.rowley@2ndquadrant.com>)
List pgsql-hackers
David Rowley <david.rowley@2ndquadrant.com> writes:
> On 1 October 2018 at 06:18, Tom Lane <tgl@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


pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Some incorrect comments and out-dated README from run-time pruning
Next
From: Alvaro Herrera
Date:
Subject: Re: automatic restore point