mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Post-PG 10 beta1 pgindent run
perltidy run not included.
This commit is contained in:
@ -34,10 +34,10 @@ PG_FUNCTION_INFO_V1(hash_metapage_info);
|
||||
*/
|
||||
typedef struct HashPageStat
|
||||
{
|
||||
int live_items;
|
||||
int dead_items;
|
||||
int page_size;
|
||||
int free_size;
|
||||
int live_items;
|
||||
int dead_items;
|
||||
int page_size;
|
||||
int free_size;
|
||||
|
||||
/* opaque data */
|
||||
BlockNumber hasho_prevblkno;
|
||||
@ -45,7 +45,7 @@ typedef struct HashPageStat
|
||||
Bucket hasho_bucket;
|
||||
uint16 hasho_flag;
|
||||
uint16 hasho_page_id;
|
||||
} HashPageStat;
|
||||
} HashPageStat;
|
||||
|
||||
|
||||
/*
|
||||
@ -99,7 +99,7 @@ verify_hash_page(bytea *raw_page, int flags)
|
||||
case LH_BUCKET_PAGE | LH_OVERFLOW_PAGE:
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("page is not a hash bucket or overflow page")));
|
||||
errmsg("page is not a hash bucket or overflow page")));
|
||||
case LH_OVERFLOW_PAGE:
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
@ -107,7 +107,7 @@ verify_hash_page(bytea *raw_page, int flags)
|
||||
default:
|
||||
elog(ERROR,
|
||||
"hash page of type %08x not in mask %08x",
|
||||
pagetype, flags);
|
||||
pagetype, flags);
|
||||
}
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ verify_hash_page(bytea *raw_page, int flags)
|
||||
* -------------------------------------------------
|
||||
*/
|
||||
static void
|
||||
GetHashPageStatistics(Page page, HashPageStat * stat)
|
||||
GetHashPageStatistics(Page page, HashPageStat *stat)
|
||||
{
|
||||
OffsetNumber maxoff = PageGetMaxOffsetNumber(page);
|
||||
HashPageOpaque opaque = (HashPageOpaque) PageGetSpecialPointer(page);
|
||||
@ -515,8 +515,8 @@ hash_metapage_info(PG_FUNCTION_ARGS)
|
||||
j;
|
||||
Datum values[16];
|
||||
bool nulls[16];
|
||||
Datum spares[HASH_MAX_SPLITPOINTS];
|
||||
Datum mapp[HASH_MAX_BITMAPS];
|
||||
Datum spares[HASH_MAX_SPLITPOINTS];
|
||||
Datum mapp[HASH_MAX_BITMAPS];
|
||||
|
||||
if (!superuser())
|
||||
ereport(ERROR,
|
||||
|
Reference in New Issue
Block a user