Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Move catalog initializations to Catalog bootstrap - #1447

Open
ksaito7 wants to merge 8 commits into
cmu-db:masterfrom
ksaito7:initialize_catalog
Open

Move catalog initializations to Catalog bootstrap#1447
ksaito7 wants to merge 8 commits into
cmu-db:masterfrom
ksaito7:initialize_catalog

Conversation

@ksaito7

@ksaito7 ksaito7 commented Jul 2, 2018

Copy link
Copy Markdown
Contributor

This PR makes all catalogs to be initialized in catalog bootstrap for checkpoints. This targets following two catalogs addressed in issue #1246.

ColumnStatsCatalog is initialized in bootstrap of SystemCatalogs. To do this, deleted database_oid column from pg_column_stats. In addition, modified a method AnalyzeStatsForAllTables() in stats_storage.h to collect stats for all tables in a database.

ZoneMapCatalog is initialized in bootstrap of Catalog. Since it seems that the latest Peloton doesn't use this catalog actually, added a boolean setting value to activate ZoneMapCatalog with false as default value.

@coveralls

coveralls commented Jul 2, 2018

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 76.489% when pulling 35e070c on ksaito7:initialize_catalog into 3bc6d46 on cmu-db:master.

@ksaito7
ksaito7 requested a review from db-ol July 4, 2018 00:12
@db-ol
db-ol removed their request for review July 9, 2018 18:03
@tli2
tli2 requested a review from db-ol July 14, 2018 17:01
@tli2
tli2 removed the request for review from db-ol July 14, 2018 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants