Skip to content

Documentation on oldkeys #187

@mijoharas

Description

@mijoharas

Hey, Happy to provide a PR, just want to check it's wanted.

I couldn't find any description of what "oldkeys" was. Now I traced the code, and my understanding is that it's a description of the replica identity for the tuple that's the subject of the action (for updates and deletes). The replica identity should be the primary key in most cases (it gets slightly weird if pkeys change, which is why you have the pointer to the old tuple for that weird edge case).

This all makes sense, but can we document that that's what this means?

Let me know if you'd like this and if I have understood correctly and I'll happily raise a PR to add it to the readme.

(also, there's at least one place online that seems to use this plugin and have a different explanation of what this data means.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions