You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is UNLOGGED table present, logical rebalancing fails with
ERROR: cannot add relation "test_table_102008" to publication
DETAIL: This operation is not supported for unlogged tables.
CONTEXT: while executing command on worker-1-1:5432
Citus Background Task Queue Executor: postgres/postgres for (1/1)
Since Postgres doesn't support replicating temp / unlogged tables, non-blocking rebalancer also doesn't support this. The only workaround I can recommend would be un-colocating the distributed unlogged table from its colocation group to continue benefiting from non-blocking rebalancer for the other distributed tables in that colocation group (if any), before starting the shard-rebalancer.
So, although the user experience is not great, this is a known limitation.
@onurctirtir, we went in a bit a different direction: make tables LOGGED temporarily, it may be a viable option for the Citus rebalancer as well.
In any case, if it is a known limitation, it would be nice to have a meaningful error message at the rebalancing start, similar to tables without primary keys
In any case, if it is a known limitation, it would be nice to have a meaningful error message at the rebalancing start, similar to tables without primary keys
+1 to that. Actually, the underlying shard-rebalancer infra performs such checks at the very early stages but the error is reported to the rebalancer monitor, not to the client side directly; and I agree that mimicking such quick checks at the very beginning of citus_rebalance_start() would make it much more explicit.
onurctirtir
changed the title
Logical rebalancing fails on UNLOGGED tables
Consider adding a check for unlogged / temp tables in citus_rebalance_start() too
Dec 18, 2024
Description
If there is
UNLOGGED
table present, logical rebalancing fails withSteps to reproduce
UNLOGGED
tablecitus_rebalance_status()
The text was updated successfully, but these errors were encountered: