PostgreSQL 15: Three features you can try with Neon
Neon now supports PostgreSQL 15, and three of its features can be tried from Neon's SQL Editor with runnable examples. MERGE performs insert, update or delete in a single statement, though unlike INSERT ON CONFLICT it can fail with a unique violation under concurrent inserts. CREATE privilege on the public schema is no longer granted to all users, so non-owners must be granted it explicitly. UNIQUE NULLS NOT DISTINCT lets a unique constraint permit only one NULL value.
Related posts
- What's new in Postgres 15?
Supabase easyNovicePostgreSQL 15 tightens the default permission model by revoking CREATE on the public schema from non-owners and adds security_invoker views that check the caller's permissions. Other headline changes include in-memory and on-disk sorts up to 4x faster, the SQL-standard MERGE command, and row/column filtering, two-phase commit and conflict-skipping options for logical replication. It also brings parallel SELECT DISTINCT, JSON logging, Zstandard/LZ4 compression for WAL and server-side base backups, and new regexp functions. The recommendation is to upgrade mainly for bug fixes and stability, using pg_upgrade and checking the release notes for cases that need manual action, such as revoking public-schema CREATE on migrated databases.
- Postgres 17 is Now Available on Neon
Neon mediumAdept
Postgres 17 is available on Neon for all plans, including Free, and can be provisioned in a few steps. The post walks through new PG17 features with runnable SQL: MERGE with RETURNING and merge_action(), random(min, max) for generating test data, JSON_TABLE for turning JSON into relational rows, the sslnegotiation=direct connection parameter, and EXPLAIN reporting planner memory usage. Neon's proxy supports direct SSL negotiation even for older server versions, which cut a sample psql connection from 0.87s to 0.75s. Major version upgrades on Neon still require manual steps and a check of extension compatibility.
- Top 3 features in Postgres 17
Neon mediumAdept
Postgres 17 adds RETURNING support to MERGE (with a merge_action() function that reports whether each row was inserted, updated or deleted), SQL/JSON functions including JSON_TABLE for turning JSON into relational rows, and performance work. On the performance side, vacuum uses a new data structure that cuts memory use by up to 20x and lifts the 1GB cap, and B-tree scans handle IN-lists faster. Neon engineers contributed to EXPLAIN (SERIALIZE), parallel BRIN index builds, direct TLS handshakes, event triggers on client connect, and amcheck validation of B-tree uniqueness.
- Better Postgres with Prisma Experience
Neon mediumAdept
Prisma users on Neon can now use a single pooled Postgres connection string for both serverless queries and schema migrations, replacing separate pooled, direct and shadow database URLs. PgBouncer 1.22.0 added support for prepared statements and DISCARD ALL/DEALLOCATE ALL, which fixes the "prepared statement already exists" errors `prisma migrate` used to hit through the pooler, and the `pgbouncer=true` parameter is no longer needed. Neon also enabled role and database management via SQL, and Prisma 5.10.0 added DROP DATABASE WITH (FORCE), so `prisma migrate dev` can create and drop its own shadow database without manual setup.
- Navigating PostgreSQL Locks with Neon and Atlas
Neon mediumAdept
Adding a UNIQUE constraint or setting a column NOT NULL in Postgres triggers a full table scan under an ACCESS EXCLUSIVE lock, which blocks all reads and writes and can take down an API on large tables. The safer sequences are CREATE UNIQUE INDEX CONCURRENTLY followed by ADD UNIQUE USING INDEX, and a NOT VALID CHECK constraint followed by VALIDATE before SET NOT NULL. To catch such migrations automatically, a GitHub Actions pipeline runs Atlas's migrate lint (check PG105) on pull requests. It then applies the migration to a Neon branch cloned from production, with a 10s statement_timeout hook, so long-locking migrations fail the build before deployment.