This is an automated email from the ASF dual-hosted git repository.
maxyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/main by this push:
new 7a6a6c9603 Make gp_matview_aux and gp_matview_tables unshared catalog.
(#756)
7a6a6c9603 is described below
commit 7a6a6c96030e521e3f70e07e8063b263aaf69000
Author: Zhang Mingli <[email protected]>
AuthorDate: Fri Dec 6 12:03:23 2024 +0800
Make gp_matview_aux and gp_matview_tables unshared catalog. (#756)
* Make gp_matview_aux and gp_matview_tables unshared catalog.
There is no need to share those across databases.
One only need to know its own matview status.
Authored-by: Zhang Mingli [email protected]
---
src/backend/catalog/catalog.c | 10 ----------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/gp_matview_aux.h | 2 +-
src/include/catalog/gp_matview_tables.h | 2 +-
4 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/src/backend/catalog/catalog.c b/src/backend/catalog/catalog.c
index 0f217d73fe..e524303d47 100644
--- a/src/backend/catalog/catalog.c
+++ b/src/backend/catalog/catalog.c
@@ -570,16 +570,6 @@ IsSharedRelation(Oid relationId)
return true;
}
- /* materialized view aux and its indexes */
- if (relationId == GpMatviewAuxId ||
- relationId == GpMatviewAuxMvoidIndexId ||
- relationId == GpMatviewAuxMvnameIndexId ||
- relationId == GpMatviewAuxDatastatusIndexId ||
- relationId == GpMatviewTablesId ||
- relationId == GpMatviewTablesMvRelIndexId ||
- relationId == GpMatviewTablesRelIndexId)
- return true;
-
/* warehouse table and its indexes */
if (relationId == GpWarehouseRelationId ||
relationId == GpWarehouseOidIndexId ||
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h
index 9349791445..8ac4a14a7c 100644
--- a/src/include/catalog/catversion.h
+++ b/src/include/catalog/catversion.h
@@ -56,6 +56,6 @@
*/
/* 3yyymmddN */
-#define CATALOG_VERSION_NO 302407192
+#define CATALOG_VERSION_NO 302412051
#endif
diff --git a/src/include/catalog/gp_matview_aux.h
b/src/include/catalog/gp_matview_aux.h
index febd951375..3dca7a526c 100644
--- a/src/include/catalog/gp_matview_aux.h
+++ b/src/include/catalog/gp_matview_aux.h
@@ -23,7 +23,7 @@
/*
* Defines for gp_matview_aux
*/
-CATALOG(gp_matview_aux,7153,GpMatviewAuxId) BKI_SHARED_RELATION
+CATALOG(gp_matview_aux,7153,GpMatviewAuxId)
{
Oid mvoid; /* materialized view oid */
NameData mvname; /* materialized view name */
diff --git a/src/include/catalog/gp_matview_tables.h
b/src/include/catalog/gp_matview_tables.h
index 8592d77603..af187e9718 100644
--- a/src/include/catalog/gp_matview_tables.h
+++ b/src/include/catalog/gp_matview_tables.h
@@ -26,7 +26,7 @@
/*
* Defines for gp_matview_tables
*/
-CATALOG(gp_matview_tables,7150,GpMatviewTablesId) BKI_SHARED_RELATION
+CATALOG(gp_matview_tables,7150,GpMatviewTablesId)
{
Oid mvoid; /* materialized view oid */
Oid relid; /* base table oid */
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]