Skip to content

Is the NSEC ordering depending on Database ordering? #13758

Answered by Habbie
klaus-nicat asked this question in Q&A
Discussion options

You must be logged in to vote

Neither! For every database, we carefully researched how to make the database to the right thing.

Postgres:

CREATE INDEX recordorder ON records (domain_id, ordername text_pattern_ops);

and using ~<~ in the ordername order by .

MySQL:

  ordername             VARCHAR(255) BINARY DEFAULT NULL,

etc.

If you have a custom schema, or are worried, pdnsutil test-schema will check a few edge cases that the "usual" collations might get wrong.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@klaus-nicat
Comment options

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