mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. I manually fixed a couple of comments that pgindent uglified.
This commit is contained in:
@ -63,12 +63,12 @@ brin_page_type(PG_FUNCTION_ARGS)
|
||||
|
||||
/* verify the special space has the expected size */
|
||||
if (PageGetSpecialSize(page) != MAXALIGN(sizeof(BrinSpecialSpace)))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("input page is not a valid %s page", "BRIN"),
|
||||
errdetail("Expected special size %d, got %d.",
|
||||
(int) MAXALIGN(sizeof(BrinSpecialSpace)),
|
||||
(int) PageGetSpecialSize(page))));
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("input page is not a valid %s page", "BRIN"),
|
||||
errdetail("Expected special size %d, got %d.",
|
||||
(int) MAXALIGN(sizeof(BrinSpecialSpace)),
|
||||
(int) PageGetSpecialSize(page))));
|
||||
|
||||
switch (BrinPageType(page))
|
||||
{
|
||||
@ -103,12 +103,12 @@ verify_brin_page(bytea *raw_page, uint16 type, const char *strtype)
|
||||
|
||||
/* verify the special space has the expected size */
|
||||
if (PageGetSpecialSize(page) != MAXALIGN(sizeof(BrinSpecialSpace)))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("input page is not a valid %s page", "BRIN"),
|
||||
errdetail("Expected special size %d, got %d.",
|
||||
(int) MAXALIGN(sizeof(BrinSpecialSpace)),
|
||||
(int) PageGetSpecialSize(page))));
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("input page is not a valid %s page", "BRIN"),
|
||||
errdetail("Expected special size %d, got %d.",
|
||||
(int) MAXALIGN(sizeof(BrinSpecialSpace)),
|
||||
(int) PageGetSpecialSize(page))));
|
||||
|
||||
/* verify the special space says this page is what we want */
|
||||
if (BrinPageType(page) != type)
|
||||
|
Reference in New Issue
Block a user