{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5", "published": "2026-10-19T07:56:07Z", "publisher": "PostgresAI", "article": {"title": "StackGres | Scaling Citus without limits: announcing Query Routers in StackGres", "url": "https://stackgres.io/blog/scaling-citus-beyond-one-coordinator-announcing-query-routers-stackgres", "date_published": "2026-10-09T00:00:00Z", "author": "\u00c1lvaro Hern\u00e1ndez", "publisher": "StackGres"}, "grade": "B", "axes": [{"axis": "Factual", "summary": "A \u00b7 0 wrong of 16 checked \u00b7 0 caveats"}, {"axis": "Applicable", "summary": "A \u00b7 0 wrong of 11 checked \u00b7 0 caveats"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 16 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "C \u00b7 0 wrong of 7 checked \u00b7 0 caveats \u00b7 reproducibility: C (no code)"}, {"axis": "Safe", "summary": "not applicable"}], "findings": [{"anchor": "F2", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F2", "claim": "\u2026the rebalancer never places a shard on it.", "title": "The rebalancer excludes nodes marked without shards", "explanation": "Citus 14.1.0 returns false from ShardAllowedOnNode when shouldHaveShards is false. src/backend/distributed/operations/shard_rebalancer.c:649 implements the stated exclusion.", "verdict": "Accurate", "sources": [{"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/operations/shard_rebalancer.c#L649-L654", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/operations/shard_rebalancer.c:649-654"}]}, {"anchor": "F3", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F3", "claim": "\u2026instances , which is fixed to 1\u2026", "title": "Routers inherit the coordinator specification and use one instance", "explanation": "StackGres 1.19.3 copies the coordinator specification and configuration references. StackGresShardedClusterForUtil.java:248 clears replication and sets instances to 1.", "verdict": "Accurate", "sources": [{"url": "https://github.com/ongres/stackgres/blob/4a02eeaf3a8177862c23fa37c328eadfa3472171/stackgres-k8s/src/operator/src/main/java/io/stackgres/operator/conciliation/factory/shardedcluster/StackGresShardedClusterForUtil.java#L248-L254", "label": "stackgres@1.19.3 \u00b7 stackgres-k8s/src/operator/src/main/java/io/stackgres/operator/conciliation/factory/shardedcluster/StackGresShardedClusterForUtil.java:248-254"}]}, {"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F4", "claim": "\u2026writes to the reference tables are blocked for the duration of that copy.", "title": "Automatic reference-table copying uses block_writes and defaults off", "explanation": "StackGres 1.19.3 invokes replicate_reference_tables('block_writes') for missing reference-table copies. citus-replicate-reference-tables.sql:3 documents the write pause. StackGresShardedClusterCitusConfigurations.java:91 defaults automatic replication to false.", "verdict": "Accurate", "sources": [{"url": "https://github.com/ongres/stackgres/blob/4a02eeaf3a8177862c23fa37c328eadfa3472171/stackgres-k8s/src/operator/src/main/resources/citus/citus-replicate-reference-tables.sql#L3-L5", "label": "stackgres@1.19.3 \u00b7 stackgres-k8s/src/operator/src/main/resources/citus/citus-replicate-reference-tables.sql:3-5"}, {"url": "https://github.com/ongres/stackgres/blob/4a02eeaf3a8177862c23fa37c328eadfa3472171/stackgres-k8s/src/operator/src/main/resources/citus/citus-replicate-reference-tables.sql#L16-L16", "label": "stackgres@1.19.3 \u00b7 stackgres-k8s/src/operator/src/main/resources/citus/citus-replicate-reference-tables.sql:16-16"}, {"url": "https://github.com/ongres/stackgres/blob/4a02eeaf3a8177862c23fa37c328eadfa3472171/stackgres-k8s/src/common/src/main/java/io/stackgres/common/crd/sgshardedcluster/StackGresShardedClusterCitusConfigurations.java#L91-L94", "label": "stackgres@1.19.3 \u00b7 stackgres-k8s/src/common/src/main/java/io/stackgres/common/crd/sgshardedcluster/StackGresShardedClusterCitusConfigurations.java:91-94"}, {"url": "https://github.com/ongres/stackgres/blob/4a02eeaf3a8177862c23fa37c328eadfa3472171/stackgres-k8s/src/operator/src/main/resources/citus/citus-replicate-reference-tables.sql#L4-L5", "label": "stackgres@1.19.3 \u00b7 stackgres-k8s/src/operator/src/main/resources/citus/citus-replicate-reference-tables.sql:4-5"}, {"url": "https://github.com/ongres/stackgres/blob/4a02eeaf3a8177862c23fa37c328eadfa3472171/stackgres-k8s/src/operator/src/main/resources/citus/citus-replicate-reference-tables.sql#L16-L16", "label": "stackgres@1.19.3 \u00b7 stackgres-k8s/src/operator/src/main/resources/citus/citus-replicate-reference-tables.sql:16-16"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F5", "claim": "\u2026hold the Citus metadata\u2026", "title": "Citus generates worker copies of routing metadata", "explanation": "Citus 14.1.0 generates node metadata and shard-placement metadata for workers. src/backend/distributed/metadata/metadata_sync.c:777 adds pg_dist_shard and pg_dist_placement entries to synchronization commands.", "verdict": "Accurate", "sources": [{"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/metadata/metadata_sync.c#L777-L780", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/metadata/metadata_sync.c:777-780"}, {"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/metadata/metadata_sync.c#L754-L754", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/metadata/metadata_sync.c:754-754"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F6", "claim": "\u2026create_distributed_table() , create_reference_table()\u2026", "title": "Distributed and reference table creation require the coordinator", "explanation": "Citus 14.1.0 passes allowFromWorkers=false for distributed and reference table creation. src/backend/distributed/commands/create_distributed_table.c:946 calls EnsureCoordinator for that setting.", "verdict": "Accurate", "sources": [{"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/commands/create_distributed_table.c#L1044-L1056", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/commands/create_distributed_table.c:1044-1056"}, {"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/commands/create_distributed_table.c#L946-L955", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/commands/create_distributed_table.c:946-955"}]}, {"anchor": "F7", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F7", "claim": "\u2026shards are distributed across the workers.", "title": "Citus partitions distributed tables into worker shard placements", "explanation": "Citus 14.1.0 records shard boundaries and assigns placements from the worker list. src/backend/distributed/operations/create_shards.c:187 performs those operations.", "verdict": "Accurate", "sources": [{"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/operations/create_shards.c#L187-L194", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/operations/create_shards.c:187-194"}]}, {"anchor": "F8", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F8", "claim": "\u2026forwards the query\u2026", "title": "The entry backend routes commands and receives worker results", "explanation": "Citus 14.1.0 identifies target shards and opens worker connections. src/backend/distributed/executor/adaptive_executor.c:3912 sends parameterized commands. Its ReceiveResults function receives rows into the scan's tuple destination.", "verdict": "Accurate", "sources": [{"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/executor/adaptive_executor.c#L3912-L3914", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/executor/adaptive_executor.c:3912-3914"}, {"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/executor/adaptive_executor.c#L2636-L2638", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/executor/adaptive_executor.c:2636-2638"}, {"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/executor/adaptive_executor.c#L3959-L3961", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/executor/adaptive_executor.c:3959-3961"}, {"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/planner/multi_router_planner.c#L3098-L3101", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/planner/multi_router_planner.c:3098-3101"}, {"url": "https://github.com/postgres/postgres/blob/f5cc81719e6da4cbdb1f797c48b693e91018153a/src/backend/postmaster/postmaster.c#L1702-L1703", "label": "REL_18_4 \u00b7 src/backend/postmaster/postmaster.c:1702-1703"}]}, {"anchor": "F10", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F10", "claim": "Citus supports querying workers directly since version 11\u2026", "title": "Citus 11.0 introduced distributed queries from any node", "explanation": "Citus 11.0 release notes confirm distributed queries from workers. They retain the coordinator requirement for distributed DDL.", "verdict": "Accurate", "sources": [{"url": "https://www.citusdata.com/updates/v11-0/", "label": "https://www.citusdata.com/updates/v11-0/"}, {"url": "https://www.citusdata.com/updates/v11-0/", "label": "https://www.citusdata.com/updates/v11-0/"}]}, {"anchor": "F11", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F11", "claim": "\u2026an innovation that shipped in StackGres 1.19\u2026", "title": "StackGres introduced query routers in 1.19.0", "explanation": "StackGres 1.19.3 CHANGELOG.md:215 records query-router support under Release 1.19.0. The introduction version matches the article.", "verdict": "Accurate", "sources": [{"url": "https://github.com/ongres/stackgres/blob/4a02eeaf3a8177862c23fa37c328eadfa3472171/CHANGELOG.md#L215-L215", "label": "stackgres@1.19.3 \u00b7 CHANGELOG.md:215-215"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F12", "claim": "\u2026autoReplicateReferenceTables is false by default\u2026", "title": "Reference-table replication defaults to false in 1.19.3", "explanation": "StackGres 1.19.3 returns false when autoReplicateReferenceTables is unset. The API accessor implements the default the article states.", "verdict": "Accurate", "sources": [{"url": "https://github.com/ongres/stackgres/blob/4a02eeaf3a8177862c23fa37c328eadfa3472171/stackgres-k8s/src/common/src/main/java/io/stackgres/common/crd/sgshardedcluster/StackGresShardedClusterCitusConfigurations.java#L92-L94", "label": "stackgres@1.19.3 \u00b7 stackgres-k8s/src/common/src/main/java/io/stackgres/common/crd/sgshardedcluster/StackGresShardedClusterCitusConfigurations.java:92-94"}]}, {"anchor": "F13", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F13", "claim": "A node can also be registered with its shouldhaveshards property set to false\u2026", "title": "Citus supports shouldhaveshards=false for routing nodes", "explanation": "Citus v14.1.0 accepts the shouldhaveshards Boolean property in src/backend/distributed/metadata/node_metadata.c:764. The rebalancer rejects false-valued nodes in src/backend/distributed/operations/shard_rebalancer.c:651.", "verdict": "Accurate", "sources": [{"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/metadata/node_metadata.c#L764-L767", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/metadata/node_metadata.c:764-767"}, {"url": "https://github.com/citusdata/citus/blob/1b3e14689e03ddd1916c9e31defe1f43252cc162/src/backend/distributed/operations/shard_rebalancer.c#L651-L654", "label": "citus@v14.1.0 \u00b7 src/backend/distributed/operations/shard_rebalancer.c:651-654"}, {"url": "https://stackgres.io/doc/latest/administration/sharded-cluster/citus/", "label": "https://stackgres.io/doc/latest/administration/sharded-cluster/citus/"}]}, {"anchor": "F14", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F14", "claim": "\u2026in 3 shards of about 350 GiB.", "title": "Three approximately 350 GiB shards are consistent with approximately 1 TiB", "explanation": "Three 350 GiB shards total 1,050 GiB, or 1.03 TiB. That agrees with approximately 1 TiB per worker.", "verdict": "Accurate", "sources": []}, {"anchor": "F15", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F15", "claim": "Query routers were the same shape. Three routers carried the same 192 vCPU as the three workers.", "title": "Three 64-vCPU routers total 192 vCPUs", "explanation": "Each router inherits the stated 64-vCPU coordinator shape. Three routers total 192 vCPUs (derived: 3 \u00d7 64 vCPUs).", "verdict": "Accurate", "sources": []}, {"anchor": "F16", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F16", "claim": "The data is twice the worker\u2019s RAM and eight times its shared_buffers (128 GiB)\u2026", "title": "The stated data-to-memory ratios are correct", "explanation": "1 TiB equals 1,024 GiB. That is twice 512 GiB of worker RAM and eight times 128 GiB of shared_buffers.", "verdict": "Accurate", "sources": []}, {"anchor": "F17", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F17", "claim": "\u202680% to a hot 5% of the rows, 10% uniform over all rows\u2026", "title": "The specified query categories sum to 100%", "explanation": "The query categories total 100% (derived: 80% + 10% + 10%). Two reference-table allocations of 5% total the stated 10%.", "verdict": "Accurate", "sources": []}, {"anchor": "F18", "url": "https://pgtrue.postgres.ai/shared/brief/13bc5d21-e441-4cd3-836d-3a63a99e88a5#F18", "claim": "\u2026here: 6.25x\u2026", "title": "400 connections equal 6.25 connections per stated vCPU", "explanation": "The connection ratio is 6.25 connections per vCPU (derived: 400 connections / 64 vCPUs).", "verdict": "Accurate", "sources": []}]}