mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +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:
@@ -300,7 +300,7 @@ typedef struct GinScanKeyData
|
||||
|
||||
/*
|
||||
* Match status data. curItem is the TID most recently tested (could be a
|
||||
* lossy-page pointer). curItemMatches is TRUE if it passes the
|
||||
* lossy-page pointer). curItemMatches is true if it passes the
|
||||
* consistentFn test; if so, recheckCurItem is the recheck flag.
|
||||
* isFinished means that all the input entry streams are finished, so this
|
||||
* key cannot succeed for any later TIDs.
|
||||
|
@@ -149,7 +149,7 @@ typedef struct xl_hash_split_complete
|
||||
typedef struct xl_hash_move_page_contents
|
||||
{
|
||||
uint16 ntups;
|
||||
bool is_prim_bucket_same_wrt; /* TRUE if the page to which
|
||||
bool is_prim_bucket_same_wrt; /* true if the page to which
|
||||
* tuples are moved is same as
|
||||
* primary bucket page */
|
||||
} xl_hash_move_page_contents;
|
||||
@@ -174,10 +174,10 @@ typedef struct xl_hash_squeeze_page
|
||||
BlockNumber prevblkno;
|
||||
BlockNumber nextblkno;
|
||||
uint16 ntups;
|
||||
bool is_prim_bucket_same_wrt; /* TRUE if the page to which
|
||||
bool is_prim_bucket_same_wrt; /* true if the page to which
|
||||
* tuples are moved is same as
|
||||
* primary bucket page */
|
||||
bool is_prev_bucket_same_wrt; /* TRUE if the page to which
|
||||
bool is_prev_bucket_same_wrt; /* true if the page to which
|
||||
* tuples are moved is the page
|
||||
* previous to the freed overflow
|
||||
* page */
|
||||
@@ -196,9 +196,9 @@ typedef struct xl_hash_squeeze_page
|
||||
*/
|
||||
typedef struct xl_hash_delete
|
||||
{
|
||||
bool clear_dead_marking; /* TRUE if this operation clears
|
||||
bool clear_dead_marking; /* true if this operation clears
|
||||
* LH_PAGE_HAS_DEAD_TUPLES flag */
|
||||
bool is_primary_bucket_page; /* TRUE if the operation is for
|
||||
bool is_primary_bucket_page; /* true if the operation is for
|
||||
* primary bucket page */
|
||||
} xl_hash_delete;
|
||||
|
||||
|
@@ -37,7 +37,7 @@
|
||||
|
||||
/*
|
||||
* Page status codes. Note that these do not include the "dirty" bit.
|
||||
* page_dirty can be TRUE only in the VALID or WRITE_IN_PROGRESS states;
|
||||
* page_dirty can be true only in the VALID or WRITE_IN_PROGRESS states;
|
||||
* in the latter case it implies that the page has been re-dirtied since
|
||||
* the write started.
|
||||
*/
|
||||
|
@@ -43,7 +43,7 @@ extern bool InRecovery;
|
||||
/*
|
||||
* Like InRecovery, standbyState is only valid in the startup process.
|
||||
* In all other processes it will have the value STANDBY_DISABLED (so
|
||||
* InHotStandby will read as FALSE).
|
||||
* InHotStandby will read as false).
|
||||
*
|
||||
* In DISABLED state, we're performing crash recovery or hot standby was
|
||||
* disabled in postgresql.conf.
|
||||
|
Reference in New Issue
Block a user