---
title: "PostgREST 13"
description: "PostgREST 13 adds spread syntax for to-many relationships so one-to-many and many-to-many joins can be returned as flat JSON arrays, automatic to_tsvector conversion that enables full text search on text and json/jsonb columns (backed by a GIN index on the expression), and a maxAffected limit that throws an error when an update, delete or rpc touches too many rows."
url: "https://swe.quest/articles/postgrest-13-412584efa365a837"
canonical: "https://supabase.com/blog/postgrest-13-release"
source: "Supabase"
published: "2025-09-30"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["postgres","api-design","search","identity-auth"]
---

# PostgREST 13

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2025-09-30, 3 min read, Release. Original: [https://supabase.com/blog/postgrest-13-release](https://supabase.com/blog/postgrest-13-release)

## Summary

PostgREST 13 adds spread syntax for to-many relationships so one-to-many and many-to-many joins can be returned as flat JSON arrays, automatic to\_tsvector conversion that enables full text search on text and json/jsonb columns (backed by a GIN index on the expression), and a maxAffected limit that throws an error when an update, delete or rpc touches too many rows. For observability, responses now carry Content-Length and a Proxy-Status header with the PostgREST error code. Breaking changes: JWT kid claims are validated against the configured JWKS, and schemas in db-schemas and db-extra-search-path must exist, so schema drops should update the search path in the same transaction.

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)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- REST APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- JWT authentication ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

PostgREST, Supabase, tsvector, JWKS, Proxy-Status, GIN index

## Related posts

- [PostgREST 9](https://swe.quest/articles/postgrest-9-20b92866c21e13eb.md): Supabase · 2021-11-27 · Medium · 2 min read · PostgreSQL, API design
  PostgREST 9 adds inner-join resource embedding via the \`!inner\` keyword, so top-level rows can be filtered by conditions on an embedded table (e.g. messages filtered by users.username).
- [PostgREST 11 pre-release](https://swe.quest/articles/postgrest-11-pre-release-708e03106b6a485f.md): Supabase · 2022-12-16 · Medium · 3 min read · PostgreSQL, API design, SQL
  PostgREST 11's pre-release, available through the Supabase CLI, adds three querying features.
- [pg\_jsonschema: JSON Schema support for Postgres](https://swe.quest/articles/pg-jsonschema-json-schema-support-for-postgres-489ffe5b7545ddca.md): Supabase · 2022-08-19 · Medium · 4 min read · PostgreSQL, Databases
  pg\_jsonschema is a Postgres extension that validates \`json\` and \`jsonb\` values against a JSON Schema through two functions, \`json\_matches\_schema\` and \`jsonb\_matches\_schema\`.
- [PostgREST 12](https://swe.quest/articles/postgrest-12-66278193f2a64132.md): Supabase · 2023-12-13 · Medium · 3 min read · PostgreSQL, API design, Performance engineering
  PostgREST 12 caches validated JWTs using the token's exp claim as the cache lifetime, cutting server-side JWT handling in the example from about 148ms to 14ms per request.
- [SQL or NoSQL? Why not use both (with PostgreSQL)?](https://swe.quest/articles/sql-or-nosql-why-not-use-both-with-postgresql-98c239e2ff7e761c.md): Supabase · 2022-11-24 · Medium · 12 min read · PostgreSQL, SQL, Databases
  PostgreSQL's JSONB columns let an app store nested, variable-length data (here, a daily food, water and exercise log) as a single row instead of spreading it across several normalized tables, while keeping SQL available for analysis.

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)
