---
title: "Top 3 features in Postgres 17"
description: "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."
url: "https://swe.quest/articles/top-3-features-in-postgres-17-b0d086972cf3cc60"
canonical: "https://neon.com/blog/top-3-features-in-postgres-17"
source: "Neon"
published: "2024-08-30"
difficulty: "medium"
kind: "Release"
reading_minutes: 5
tags: ["postgres","sql"]
---

# Top 3 features in Postgres 17

A post on [Neon](https://swe.quest/sources/neon.md), published 2024-08-30, 5 min read, Release. Original: [https://neon.com/blog/top-3-features-in-postgres-17](https://neon.com/blog/top-3-features-in-postgres-17)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- PostgreSQL ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))

## Keywords

PostgreSQL 17, MERGE, JSON\_TABLE, EXPLAIN SERIALIZE, BRIN, amcheck, Neon

## Related posts

- [Postgres 17 is Now Available on Neon](https://swe.quest/articles/postgres-17-is-now-available-on-neon-84c88d00e9905bce.md): Neon · 2024-09-26 · Medium · 6 min read · PostgreSQL, SQL
  Postgres 17 is available on Neon for all plans, including Free, and can be provisioned in a few steps.
- [New in PostgreSQL 14: What every developer should know](https://swe.quest/articles/new-in-postgresql-14-what-every-developer-should-know-e3634d2eaebf30b0.md): Supabase · 2021-11-28 · Medium · 5 min read · PostgreSQL, SQL
  PostgreSQL 14 adds JSON subscripting for jsonb, multirange types such as tsmultirange for storing non-contiguous ranges in one value, and client-side query pipelining in libpq to cut round-trip latency.
- [What's New in PostgreSQL 14?](https://swe.quest/articles/what-s-new-in-postgresql-14-d679a59b3961e203.md): Render · 2021-10-05 · Medium · 4 min read · PostgreSQL, SQL
  PostgreSQL 14 adds jsonb subscripting, which lets queries read, filter and update nested JSONB values with JavaScript-like bracket syntax instead of path operators such as #\>.
- [What's new in Postgres 15?](https://swe.quest/articles/what-s-new-in-postgres-15-a6b4172551a1b66b.md): Supabase · 2022-12-16 · Easy · 3 min read · PostgreSQL, Replication, SQL
  PostgreSQL 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.
- [Postgres 19 is out: try it on Neon](https://swe.quest/articles/postgres-19-is-out-try-it-on-neon-e6c41c3a4f2e92c9.md): Neon · 2026-11-19 · Medium · 12 min read · PostgreSQL, Replication, Query engines, Databases
  Postgres 19 is an operations-focused release that adds REPACK (CONCURRENTLY) for online table rebuilding and clustering via logical decoding, pg\_plan\_advice/pg\_stash\_advice for stabilizing bad plans by query ID, parallel autovacuum with priority scoring, WAIT FOR LSN for read-your-writes on replicas, and logical replication sequence sync.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
