How does a unique index handle NULL?

A users table has a unique index on email, but the column allows NULL. Can you insert multiple users without an email address? What if the business wants a missing email to count as a duplicate? How would you enforce that rule? Compare the behavior of PostgreSQL, MySQL InnoDB, and ClickHouse MergeTree.

ExplainIndexesSeniorBackendData EngineerQA