From 23c46a1327f8dc63abf32a36b9eac1556ea5c328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A6=99=E8=95=89=E5=82=A8=E8=93=84=E6=89=80?= <727854256@qq.com> Date: Thu, 16 Jan 2025 11:53:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[dbg]1.=E4=BF=AE=E6=94=B9=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=8E=8B=E7=BC=A9=E5=8F=82=E6=95=B0=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/bootstrap/bootparse.y | 3 ++- src/backend/utils/cache/relcache.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/bootstrap/bootparse.y b/src/backend/bootstrap/bootparse.y index e5cf1b3..9177ff5 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 78e1158..5a1bcfd 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)); } -- Gitee From 05238621c6a41c59adc233c3f46b585ca02b2d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A6=99=E8=95=89=E5=82=A8=E8=93=84=E6=89=80?= <727854256@qq.com> Date: Thu, 16 Jan 2025 12:02:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[dbg]1.=E8=A7=A3=E6=9E=90=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E5=8F=82=E6=95=B0debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/include/storage/page_compression.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/storage/page_compression.h b/src/include/storage/page_compression.h index d082190..8513504 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[]; -- Gitee