Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make zero-shard SELECT consistent with CitusDB #134

Open
jasonmp85 opened this issue Aug 13, 2015 · 0 comments
Open

Make zero-shard SELECT consistent with CitusDB #134

jasonmp85 opened this issue Aug 13, 2015 · 0 comments

Comments

@jasonmp85
Copy link
Collaborator

Making a query against a table that has been marked as "distributed" (either by CREATE TABLE ... DISTRIBUTE BY ... or using master_create_distributed_table) which does not yet have any shards (created using either \stage or master_create_worker_shards) results in different behavior depending upon whether the active planner is CitusDB's or pg_shard's:

  • Under CitusDB, the query returns zero rows
  • pg_shard raises an error directing the user to call master_create_worker_shards

The latter is obviously helpful under pg_shard (especially for users who have missed this step), but is confusing under CitusDB. Now that integration is tighter, we need to figure out what the best approach is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant