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

Add a 'set replica identity' operation #201

Merged
merged 4 commits into from Nov 8, 2023
Merged

Conversation

andrew-farries
Copy link
Collaborator

@andrew-farries andrew-farries commented Nov 8, 2023

Add support for a new set replica identity operation type. The new operation looks like this:

{
  "name": "29_set_replica_identity",
  "operations": [
    {
      "set_replica_identity": {
        "table": "fruits",
        "identity": {
          "type": "full"
        }
      }
    }
  ]
}

This sets the replica identity for the fruits table to FULL. The other supported operation types are 'nothing', 'default', and 'index'. If the replica identity is being set to an index, the operation looks like:

{
  "name": "29_set_replica_identity",
  "operations": [
    {
      "set_replica_identity": {
        "table": "fruits",
        "identity": {
          "type": "index",
          "index": "some_index_name"
        }
      }
    }
  ]
}

The replica identity is set directly on the underlying table on operation start. This means that both versions of the table exposed in the new and old versioned views will have the new replica identity set.

The docs have been updated with the details of the new operation here.

@andrew-farries andrew-farries merged commit 4f4d549 into main Nov 8, 2023
22 checks passed
@andrew-farries andrew-farries deleted the set-replica-identity branch November 8, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants