mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Change TRUE/FALSE to true/false
The lower case spellings are C and C++ standard and are used in most parts of the PostgreSQL sources. The upper case spellings are only used in some files/modules. So standardize on the standard spellings. The APIs for ICU, Perl, and Windows define their own TRUE and FALSE, so those are left as is when using those APIs. In code comments, we use the lower-case spelling for the C concepts and keep the upper-case spelling for the SQL concepts. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@@ -129,7 +129,7 @@ LockRelationOid(Oid relid, LOCKMODE lockmode)
|
||||
* ConditionalLockRelationOid
|
||||
*
|
||||
* As above, but only lock if we can get the lock without blocking.
|
||||
* Returns TRUE iff the lock was acquired.
|
||||
* Returns true iff the lock was acquired.
|
||||
*
|
||||
* NOTE: we do not currently need conditional versions of all the
|
||||
* LockXXX routines in this file, but they could easily be added if needed.
|
||||
@@ -344,7 +344,7 @@ LockRelationForExtension(Relation relation, LOCKMODE lockmode)
|
||||
* ConditionalLockRelationForExtension
|
||||
*
|
||||
* As above, but only lock if we can get the lock without blocking.
|
||||
* Returns TRUE iff the lock was acquired.
|
||||
* Returns true iff the lock was acquired.
|
||||
*/
|
||||
bool
|
||||
ConditionalLockRelationForExtension(Relation relation, LOCKMODE lockmode)
|
||||
@@ -413,7 +413,7 @@ LockPage(Relation relation, BlockNumber blkno, LOCKMODE lockmode)
|
||||
* ConditionalLockPage
|
||||
*
|
||||
* As above, but only lock if we can get the lock without blocking.
|
||||
* Returns TRUE iff the lock was acquired.
|
||||
* Returns true iff the lock was acquired.
|
||||
*/
|
||||
bool
|
||||
ConditionalLockPage(Relation relation, BlockNumber blkno, LOCKMODE lockmode)
|
||||
@@ -469,7 +469,7 @@ LockTuple(Relation relation, ItemPointer tid, LOCKMODE lockmode)
|
||||
* ConditionalLockTuple
|
||||
*
|
||||
* As above, but only lock if we can get the lock without blocking.
|
||||
* Returns TRUE iff the lock was acquired.
|
||||
* Returns true iff the lock was acquired.
|
||||
*/
|
||||
bool
|
||||
ConditionalLockTuple(Relation relation, ItemPointer tid, LOCKMODE lockmode)
|
||||
@@ -601,7 +601,7 @@ XactLockTableWait(TransactionId xid, Relation rel, ItemPointer ctid,
|
||||
* ConditionalXactLockTableWait
|
||||
*
|
||||
* As above, but only lock if we can get the lock without blocking.
|
||||
* Returns TRUE if the lock was acquired.
|
||||
* Returns true if the lock was acquired.
|
||||
*/
|
||||
bool
|
||||
ConditionalXactLockTableWait(TransactionId xid)
|
||||
|
Reference in New Issue
Block a user