citus/src/backend/distributed/metadata
Cédric Villemain 37415ef8f5
Allow citus_*_size on index related to a distributed table (#7271)
I just enhanced the existing code to check if the relation is an index
belonging to a distributed table.
If so the shardId is appended to relation (index) name and the *_size
function are executed as before.

There is a change in an extern function:
  `extern StringInfo GenerateSizeQueryOnMultiplePlacements(...)`
It's possible to create a new function and deprecate this one later if
compatibility is an issue.

Fixes https://github.com/citusdata/citus/issues/6496.

DESCRIPTION: Allows using Citus size functions on distributed tables
indexes.

---------

Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2023-11-01 09:05:51 +00:00
..
dependency.c PG16 compatibility - fix AM dependency and grant's admin option (#7113) 2023-08-17 11:22:34 +03:00
distobject.c Fix ScanKeyInit RegProcedure and Datum arguments (#7072) 2023-07-21 14:11:10 +03:00
metadata_cache.c Fix wrong comments around HasDistributionKey() (#7223) 2023-10-18 10:53:00 +02:00
metadata_sync.c Not undistribute Citus local table when converting it to a reference table / single-shard table 2023-08-29 12:57:28 +03:00
metadata_utility.c Allow citus_*_size on index related to a distributed table (#7271) 2023-11-01 09:05:51 +00:00
node_metadata.c Adds citus_pause_node udf (#7089) 2023-09-01 11:39:30 +03:00
pg_get_object_address_13_14_15.c PG16 compatibility: Resolve compilation issues (#7005) 2023-07-21 14:32:37 +03:00