Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
radiospiel
on July 11, 2022
|
parent
|
context
|
favorite
| on:
Postgres 15 improves UNIQUE and NULL
You might want to look at a unique partial index: "CREATE UNIQUE INDEX foo ON pages(name, parent_id) WHERE parent_id IS NOT NULL"
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: