diff --git a/src/backend/bootstrap/bootparse.y b/src/backend/bootstrap/bootparse.y index e5cf1b3d4397bb14ddc1759afff6c9ca4732ab1d..9177ff5081f37571d692fa1fd658ba94afcc85a4 100644 --- a/src/backend/bootstrap/bootparse.y +++ b/src/backend/bootstrap/bootparse.y @@ -213,7 +213,8 @@ Boot_CreateStmt: true, &relfrozenxid, &relminmxid, - true); + true, + (Datum) 0); elog(DEBUG4, "bootstrap relation created"); } else diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 78e1158ca7b5fcc47f946217e88fdce4271f9792..5a1bcfdb242f6635f2323850549e2cc4940da16f 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -1388,7 +1388,7 @@ RelationInitPhysicalAddr(Relation relation) * Setup page compression options */ relation->rd_node.opt = 0; - if (relation->rd_options && REL_SUPPORT_COMPRESSED(RELATION)) { + if (relation->rd_options && REL_SUPPORT_COMPRESSED(relation)) { SetupPageCompressForRelation(&relation->rd_node, &((StdRdOptions*)(void*)(relation->rd_options))->compress, RelationGetRelationName(relation)); } diff --git a/src/include/storage/page_compression.h b/src/include/storage/page_compression.h index d08219053b5f4f4b9a15b9e25091579ba69f6a28..8513504bb1276a79b0dc9642761d812b9b102a90 100644 --- a/src/include/storage/page_compression.h +++ b/src/include/storage/page_compression.h @@ -61,10 +61,10 @@ typedef struct relFileCompressOption { #define REL_SUPPORT_COMPRESSED(relation) SUPPORT_COMPRESSED((relation)->rd_rel->relkind, (relation)->rd_rel->relam) -const uint32 INDEX_OF_HALF_BLCKSZ; -const uint32 INDEX_OF_QUARTER_BLCKSZ; -const uint32 INDEX_OF_EIGHTH_BLCKSZ; -const uint32 INDEX_OF_SIXTEENTHS_BLCKSZ; +extern const uint32 INDEX_OF_HALF_BLCKSZ; +extern const uint32 INDEX_OF_QUARTER_BLCKSZ; +extern const uint32 INDEX_OF_EIGHTH_BLCKSZ; +extern const uint32 INDEX_OF_SIXTEENTHS_BLCKSZ; extern const KPHCCmpBitStuct gCmpBitStruct[];