Re: remove some STATUS_* symbols
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-01-06T06:31:59Z
Lists: pgsql-hackers
On Sun, Dec 29, 2019 at 11:33:34AM +0100, Peter Eisentraut wrote: > Attached are two patches to remove these two symbols. STATUS_FOUND can be > replaced by a simple bool. STATUS_WAITING is replaced by a separate enum. Patch 0001 looks good to me, but I got to wonder why the check after waitMask in LockAcquireExtended() is not done directly in LockCheckConflicts(). Regarding patch 0002, I am not sure that the addition of ProcWaitStatus brings much though in terms of code readability. -- Michael
Commits
-
Remove STATUS_WAITING
- a513f1dfbf2c 14.0 landed
-
Remove STATUS_FOUND
- c096a804d9dc 13.0 landed