Support for sharded tables on Azure Hyperscale (Citus)
See original GitHub issueHi team,
We’ve run into a roadblock when testing Azure Database for PostgreSQL Hyperscale (i.e. Citus) with Hasura. Is this a known issue / limitation, or something that we’ve missed?
Originally we were looking into Yugabyte, which is probably great for some use cases, but it wasn’t coping well with our large and rather complex schema. Citus offers a Microsoft-backed PaaS solution that would be ideal for us.
Example error:
{
"errors": [
{
"extensions": {
"internal": {
"statement": "SELECT coalesce(json_agg(\"root\" ), '[]' ) AS \"root\" FROM (SELECT row_to_json((SELECT \"_1_e\" FROM (SELECT \"_0_root.base\".\"connector_uuid\" AS \"connector_uuid\", \"_0_root.base\".\"batch_uuid\" AS \"batch_uuid\", \"_0_root.base\".\"ext_id\" AS \"ext_id\", \"_0_root.base\".\"landed_file\" AS \"landed_file\", \"_0_root.base\".\"last_updated\" AS \"last_updated\", \"_0_root.base\".\"last_updated_src\" AS \"last_updated_src\", \"_0_root.base\".\"lkey\" AS \"lkey\" ) AS \"_1_e\" ) ) AS \"root\" FROM (SELECT * FROM \"etl\".\"keystore\" WHERE ('true') ) AS \"_0_root.base\" ) AS \"_2_root\" ",
"prepared": true,
"error": {
"exec_status": "FatalError",
"hint": "Consider using an equality filter on the distributed table's partition column.",
"message": "could not run distributed query with subquery outside the FROM, WHERE and HAVING clauses",
"status_code": "0A000",
"description": null
},
"arguments": [
"(Oid 114,Just (\"{\\\"x-hasura-role\\\":\\\"admin\\\"}\",Binary))"
]
},
"path": "$",
"code": "unexpected"
},
"message": "database query error"
}
]
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Sharding Postgres with Basic tier in Hyperscale (Citus) ...
Monitor the shard rebalancer: Go to the Azure portal. Open the Shard rebalancer page in Server group management. You will see the message...
Read more >Hyperscale (Citus) on Azure Database for PostgreSQL
Transparently shard Postgres tables across multiple nodes to give your application more memory, compute, and disk. Which gives you parallelism, high performance ...
Read more >Guide to Azure PostgreSQL Partitioning and Sharding
Comprehensive Guide on Partitioning and Sharding in Azure Database ... the associated tables to support the data distribution in the table.
Read more >What To Know About Microsoft Azure PostgreSQL ...
Since renamed Azure Database for PostgreSQL Hyperscale, this feature enables database developers to design tables so portions of the data are ...
Read more >Accelerate Performance by choosing right table type in ...
Hyperscale (Citus) Introduction: If you're looking to scale out your multi-tenant app on Azure - or build a real-time operational analytics ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @tirumaraiselvan. Checking in again to see if there’s been any updates on this one.
Is there an ETA for Citus support, even if its alpha or beta? 🙂
I’m also interested to know when this feature would be available 😇