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

Move catalog initializations to Catalog bootstrap #1447

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ksaito7
Copy link
Contributor

@ksaito7 ksaito7 commented Jul 2, 2018

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
Copy link

coveralls commented Jul 2, 2018

Coverage Status

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

@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