Manual bitswizzling -> LOCKBIT_ON

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Manual bitswizzling -> LOCKBIT_ON
Date: 2015-09-25 02:24:41
Message-ID: CAEepm=1hYPebYfVJ=sK9SyTjKGjLkBjXNh2fxBFCT5+3Cw4OkQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

While studying lmgr code, I noticed that there are a couple of places
that use 1 << x to convert a LOCKMODE to a LOCKMASK instead of the
macro that is used elsewhere. Should that be changed for consistency,
as in the attached?

--
Thomas Munro
http://www.enterprisedb.com

Attachment Content-Type Size
use-lockbit-on-macro.patch application/octet-stream 3.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-09-25 03:20:33 Re: Parallel Seq Scan
Previous Message David Rowley 2015-09-25 01:39:05 Re: PATCH: use foreign keys to improve join estimates v1