Postgres 15 improves UNIQUE and NULL

Tech & AIblog.rustprooflabs.comSince 2019

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

More Tech & AI finds

All Tech & AI websites →

Feeling lucky? Try the random website generator.

Where people went next

Nobody has added a next stop yet. Be the first.

Five finds like this, every morning

Five great websites every morning, picked by people and written up by AI. Free, and one click to stop.

Remember Me
Scroll to Top

More

📰 Latest Posts
📊 Community Stats
👋 New Members
👥 Popular Groups