---
title: "What is new in PostgREST v11.1?"
description: "PostgREST 11.1 lets impersonated JWT roles (anon, authenticated, service_role) carry Postgres settings via ALTER ROLE ..."
url: "https://swe.quest/articles/what-is-new-in-postgrest-v11-1-2bc974a578068114"
canonical: "https://supabase.com/blog/postgrest-11-1-release"
source: "Supabase"
published: "2023-07-12"
difficulty: "medium"
kind: "Release"
reading_minutes: 5
tags: ["postgres","api-design","consistency","sql"]
---

# What is new in PostgREST v11.1?

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2023-07-12, 5 min read, Release. Original: [https://supabase.com/blog/postgrest-11-1-release](https://supabase.com/blog/postgrest-11-1-release)

## Summary

PostgREST 11.1 lets impersonated JWT roles (anon, authenticated, service\_role) carry Postgres settings via ALTER ROLE ... SET, applied after a NOTIFY pgrst 'reload config'. That enables per-role statement\_timeout and pg\_plan\_filter cost limits, where the cost limit rejects expensive queries at planning time but needs careful tuning. Transaction isolation is now configurable per function or role, alongside bulk JSON inserts that respect column defaults and new any/all filter modifiers. Breaking changes from v10 are small: the Range header is ignored on non-GET requests and Prefer: params=multiple-objects is dropped for RPC, and usage logs show almost no projects relied on either.

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)
- [Consistency models](https://swe.quest/tags/consistency.md) (Distributed systems)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- PostgreSQL roles and settings ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- REST APIs over Postgres ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- transaction isolation levels ([easy posts on Consistency models](https://swe.quest/tags/consistency.md?difficulty=easy))

## Keywords

PostgREST, Supabase, pg\_plan\_filter, statement\_timeout, supabase-js, Logflare

## 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 12.2: Prometheus metrics](https://swe.quest/articles/postgrest-12-2-prometheus-metrics-d06169af1cb8495c.md): Supabase · 2024-08-16 · Medium · 2 min read · PostgreSQL, API design, Observability
  PostgREST 12.2 adds Prometheus-compatible metrics for its schema cache and connection pool, such as pgrst\_db\_pool\_timeouts\_total, to help diagnose problems like pool starvation.
- [PostgREST Aggregate Functions](https://swe.quest/articles/postgrest-aggregate-functions-f622df6532444e20.md): Supabase · 2024-02-29 · Medium · 7 min read · PostgreSQL, API design, SQL
  PostgREST v12 adds on-the-fly aggregate functions (avg, count, max, min, sum) to its API.
- [Cracking PostgreSQL Interview Questions](https://swe.quest/articles/cracking-postgresql-interview-questions-e9efeda89524a92a.md): Supabase · 2021-02-27 · Medium · 6 min read · PostgreSQL, SQL, Databases, Identity & auth, Engineering culture
  Interview preparation for the transactional side of PostgreSQL, organized around five areas: data modeling, indexes, views, roles and functions.
- [PostgREST v10: EXPLAIN and Improved Relationship Detection](https://swe.quest/articles/postgrest-v10-explain-and-improved-relationship-detection-44878c605b0df57d.md): Supabase · 2022-08-19 · Medium · 7 min read · PostgreSQL, API design, Performance engineering
  PostgREST v10 adds HTTP-level EXPLAIN support: requests with the \`application/vnd.pgrst.plan\` media type, or supabase-js's \`explain()\` transform, return the PostgreSQL execution plan for reads, writes and RPC, which helps verify that RLS policies are applied and gives you the pg\_stat\_statements query identifier.

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)
