mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +03:00
Fix inconsistencies and typos in the tree, take 10
This addresses some issues with unnecessary code comments, fixes various typos in docs and comments, and removes some orphaned structures and definitions. Author: Alexander Lakhin Discussion: https://postgr.es/m/9aabc775-5494-b372-8bcb-4dfc0bd37c68@gmail.com
This commit is contained in:
@@ -31,7 +31,7 @@ extern void brinRevmapExtend(BrinRevmap *revmap,
|
||||
BlockNumber heapBlk);
|
||||
extern Buffer brinLockRevmapPageForUpdate(BrinRevmap *revmap,
|
||||
BlockNumber heapBlk);
|
||||
extern void brinSetHeapBlockItemptr(Buffer rmbuf, BlockNumber pagesPerRange,
|
||||
extern void brinSetHeapBlockItemptr(Buffer buf, BlockNumber pagesPerRange,
|
||||
BlockNumber heapBlk, ItemPointerData tid);
|
||||
extern BrinTuple *brinGetTupleForHeapBlock(BrinRevmap *revmap,
|
||||
BlockNumber heapBlk, Buffer *buf, OffsetNumber *off,
|
||||
|
@@ -51,19 +51,6 @@
|
||||
#define XLH_SPLIT_META_UPDATE_MASKS (1<<0)
|
||||
#define XLH_SPLIT_META_UPDATE_SPLITPOINT (1<<1)
|
||||
|
||||
/*
|
||||
* This is what we need to know about a HASH index create.
|
||||
*
|
||||
* Backup block 0: metapage
|
||||
*/
|
||||
typedef struct xl_hash_createidx
|
||||
{
|
||||
double num_tuples;
|
||||
RegProcedure procid;
|
||||
uint16 ffactor;
|
||||
} xl_hash_createidx;
|
||||
#define SizeOfHashCreateIdx (offsetof(xl_hash_createidx, ffactor) + sizeof(uint16))
|
||||
|
||||
/*
|
||||
* This is what we need to know about simple (without split) insert.
|
||||
*
|
||||
|
@@ -237,7 +237,7 @@ typedef struct
|
||||
|
||||
/*
|
||||
* For use by code reading options already parsed: get a pointer to the string
|
||||
* value itself. "optstruct" is the StdRdOption struct or equivalent, "member"
|
||||
* value itself. "optstruct" is the StdRdOptions struct or equivalent, "member"
|
||||
* is the struct member corresponding to the string option
|
||||
*/
|
||||
#define GET_STRING_RELOPTION(optstruct, member) \
|
||||
|
@@ -248,7 +248,7 @@ extern bool DecodeXLogRecord(XLogReaderState *state, XLogRecord *record,
|
||||
extern FullTransactionId XLogRecGetFullXid(XLogReaderState *record);
|
||||
#endif
|
||||
|
||||
extern bool RestoreBlockImage(XLogReaderState *recoder, uint8 block_id, char *dst);
|
||||
extern bool RestoreBlockImage(XLogReaderState *record, uint8 block_id, char *page);
|
||||
extern char *XLogRecGetBlockData(XLogReaderState *record, uint8 block_id, Size *len);
|
||||
extern bool XLogRecGetBlockTag(XLogReaderState *record, uint8 block_id,
|
||||
RelFileNode *rnode, ForkNumber *forknum,
|
||||
|
Reference in New Issue
Block a user