Menu

#35 UPDATE of distribution key

Development Queue
open
mason_s
5
2012-06-12
2012-04-23
No

Now XC does not support update of a distribution key. This feature is related to tuple relocation, because changing the key of a distribution column would mean that we can move a tuple from a datanode to another.
Here is a small example:
postgres=# create table aa (a int, b int) distribute by hash (a);
CREATE TABLE
postgres=# update aa set a = 4 where b = 2;
ERROR: Partition column can't be updated in current version

Discussion

  • Abbas Butt

    Abbas Butt - 2012-04-24

    In the test case constraints.sql we have added distribute by replication clause to a number of create table statements to by pass this limitation.

     
  • Abbas Butt

    Abbas Butt - 2012-04-30

    In the test case foreign_key.sql we have added distribute by replication
    clause to a number of create table statements to by pass this limitation.

     
  • Koichi Suzuki

    Koichi Suzuki - 2012-06-12
    • milestone: --> Development Queue
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.