citus/src/backend/distributed/metadata
SaitTalhaNisanci 366461ccdb
Introduce cache entry/table utilities (#4132)
Introduce table entry utility functions

Citus table cache entry utilities are introduced so that we can easily
extend existing functionality with minimum changes, specifically changes
to these functions. For example IsNonDistributedTableCacheEntry can be
extended for citus local tables without the need to scan the whole
codebase and update each relevant part.

* Introduce utility functions to find the type of tables

A table type can be a reference table, a hash/range/append distributed
table. Utility methods are created so that we don't have to worry about
how a table is considered as a reference table etc. This also makes it
easy to extend the table types.

* Add IsCitusTableType utilities

* Rename IsCacheEntryCitusTableType -> IsCitusTableTypeCacheEntry

* Change citus table types in some checks
2020-09-02 22:26:05 +03:00
..
dependency.c Adds support for table undistribution 2020-08-05 14:36:03 +03:00
distobject.c Use table_openXXX methods in the codebase 2020-08-04 15:10:22 +03:00
metadata_cache.c Introduce cache entry/table utilities (#4132) 2020-09-02 22:26:05 +03:00
metadata_sync.c Introduce cache entry/table utilities (#4132) 2020-09-02 22:26:05 +03:00
metadata_utility.c Introduce cache entry/table utilities (#4132) 2020-09-02 22:26:05 +03:00
node_metadata.c Introduce cache entry/table utilities (#4132) 2020-09-02 22:26:05 +03:00