Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-619

Support DELETE over table with immutable index when possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2.0, 3.2.0
    • None
    • 488

    Description

      I try to delete rows in this table:
      ```sql
      CREATE TABLE test.date2(
      id BIGINT NOT NULL PRIMARY KEY,
      d DATE NOT NULL
      ) IMMUTABLE_ROWS=true;

      CREATE INDEX idx_d ON test.date2(d);

      DELETE FROM test.date2;
      ```

      I do not understand why we have this limitation.
      DELETE works fine in tables with "IMMUTABLE_ROWS=false" and no "PK column in index".

      It's must be also reflected in "Phoenix Language Reference".

      Attachments

        1. PHOENIX-619.patch
          76 kB
          James R. Taylor

        Activity

          People

            Unassigned Unassigned
            adenysenko Artur Denysenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: