Postgres 15 improves UNIQUE and NULL
Quick read
A short blog post explaining Postgres 15’s new UNIQUE NULLS NOT DISTINCT option. It shows how this option makes UNIQUE constraints treat NULLs as equal so repeated NULLs can be prevented.
- Explains difference between old and new UNIQUE behavior with NULLs
- Shows example tables demonstrating enforcement change
- Notes default behavior remains unchanged unless option used
Reactions
No reactions yet. Record a short about this link and it shows up here, in Reels and in the community feed.
Is blog.rustprooflabs.com your site? Sign in to verify it and get a Verified badge, full stats and a link-back badge.
A closer look at Postgres 15 improves UNIQUE and NULL
What this post covers
A RustProof Labs blog post reviews a change in PostgreSQL 15 that affects UNIQUE constraints when columns contain NULL values.
The post explains the new syntax UNIQUE NULLS NOT DISTINCT and contrasts it with the behavior in PostgreSQL 14 and earlier, where NULLs are not considered equal and therefore do not violate UNIQUE constraints.
What you can do and see in the writeup
The author demonstrates the difference by creating two example tables: one with the traditional UNIQUE constraint and one using UNIQUE NULLS NOT DISTINCT.
They show that with the new option, inserting a second row that repeats a NULL in the constrained column is disallowed, whereas previously multiple NULLs were allowed. Changing other column values can permit another NULL row.
Who will find this useful
Database developers and PostgreSQL users who care about how UNIQUE constraints treat NULL values will get a clear, practical explanation.
Anyone evaluating Postgres 15 beta behavior or considering stricter data-quality rules around NULLs will find the comparison and examples relevant.
Questions people ask about Postgres 15 improves UNIQUE and NULL
- Does the post show how to use the new syntax?
- Yes; it describes creating a constraint with UNIQUE NULLS NOT DISTINCT and demonstrates its effect with example tables.
- Is the previous behavior still the default?
- Yes; the post notes the default operation will continue as it has been, and the new option adds an alternative.
- Does the post provide help with PostgreSQL servers?
- The post ends with an invitation to contact the author for help with PostgreSQL servers or databases.
Postgres 15 improves UNIQUE and NULL was shared on NexURLs by NexURLs on October 17, 2026, in Tech & AI.
What we found on this site
- Served through
- Nginx
- Home page answered in
- 117 ms
- Trackers
- Google Analytics
- Ads
- None found
- RSS feed
- No
- AI crawlers
- Lets them in
- Set up for phones
- Yes
- Real-visitor speed
- Not enough visitors for Google data
- Popularity
- Top 200,000 domain (Cloudflare)
- Lighthouse on a phone
- Speed 75, Accessibility 86, SEO 83
- Google safety check
- No threats found
- Domain registered
- 2012
- Domain renews
- August 2027
Checked November 20, 2026 from the site’s own code and public records. See how the rest of the web compares in the NexURLs Internet Report.
Quick answers
What is Postgres 15 improves UNIQUE and NULL?
Postgres 15 improves UNIQUE and NULL (blog.rustprooflabs.com): A short blog post explaining Postgres 15’s new UNIQUE NULLS NOT DISTINCT option. It shows how this option makes UNIQUE constraints treat NULLs as equal so repeated NULLs can be prevented.
Who shared Postgres 15 improves UNIQUE and NULL on NexURLs?
It was shared by NexURLs in October 2026. Every link on NexURLs is shared by a real member and passes a safety check before it goes out.
What are some sites like Postgres 15 improves UNIQUE and NULL?
Members found these close to it: Postgres.new, GitLab Critical Patch Release, UUIDv7 doesn't have the properties you think it does. The full list is on this page under Sites like Postgres 15 improves UNIQUE and NULL.
Sites like Postgres 15 improves UNIQUE and NULL
- Postgres.new: In-browser Postgres with an AI interfacesupabase.com
A demo and explanation of postgres.new (renamed database.build), an in-browser Postgres sandbox paired with an LLM for...
- GitLab Critical Patch Releasedocs.gitlab.com
A GitLab security patch release page listing critical fixes for multiple CE and EE versions (including 19.5.1 and...
- UUIDv7 doesn't have the properties you think it doesalexsci.com
This blog post analyses UUIDv7 and argues it does not reliably provide monotonic ordering or accurate creation...
- one underrated website every backend developer should know:use-the-index-luke.com
A free, vendor-agnostic web tutorial that explains SQL indexing and performance tuning for developers. Visit to learn...
- Designing a planned switchover for minimum disruptionplanetscale.com
A PlanetScale blog post describing Neki’s method for performing planned Postgres primary switchovers with minimal...
- 3-2-1 Backup Strategy with restic and Backblaze B2chuck.is
This page explains how to implement a 3-2-1 backup strategy using restic and Backblaze B2. It's useful for anyone...
More Tech & AI finds
- Google Reports First Fully Automated AI Cyberattackpolitico.eu
- Inside the FBI's Request for an iPhone Backdoorwired.trib.al
- It's Time to Stop Taking Sam Altman at His Wordtheatlantic.com
- FBI Warns of AI-Powered Hacking Toolkltv.com
- Designed to Scaledesigned-to-scale.vercel.app
- DeepSeek Chat Demodeepseek-ai.github.io
Feeling lucky? Try the random website generator.
Where people went next
Nobody has added a next stop yet. Be the first.