Skip to content
Discussion options

You must be logged in to vote

One method is to write a custom migration that adds an index just to the "user" key of the "metadata" in the JSON field:

create index pghistory_context_user on pghistory_context (
    (metadata->>'user') 
);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sephii
Comment options

Answer selected by sephii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants