Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
create_distributed_table gives misleading error when called as non-table-owner #2094
When a table that contains data is distributed,
What happens is that Citus connects as the table owner to create the shards (the "DDL") to make sure the shard has the same owner, but then Citus tries to copy data into the shards as the current user, which would require a new connection, but that new connection would not be able to see the new table yet.
We could require that
I just ran into a similar problem: We created a Postgres user (lets call it