---
title: "Find why a new PostgreSQL table missed a default grant | Proofline"
description: "Check which role actually created the table. At object creation, PostgreSQL applies the default privileges of the current creating role."
url: https://proofline.sh/learn/postgres-default-privileges-wrong-creator/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# Find why a new PostgreSQL table missed a default grant

Check which role actually created the table. At object creation, PostgreSQL applies the default privileges of the current creating role. It does not inherit other roles' default privileges.

Permission errors The Proofline team November 24, 2026 1 min read

In a fictional reporting database, `report_ddl` has default privileges that give `report_reader` SELECT on future tables. A migration connected as `migration_login` and omitted the expected role switch. Its new table lacks the grant. In psql, inspect `\ddp` for the applicable default privileges and `\dp reporting.monthly_sales` for the current table's grants. Read the migration execution record to verify which role created the table. The table's current owner is a clue, since ownership can change later. [ALTER DEFAULT PRIVILEGES](https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html) · [psql meta-commands](https://www.postgresql.org/docs/current/app-psql.html)

Repair the existing table's grant only where approved. Fix the creating role in the migration path or its defaults for future tables. A change to default privileges does not update existing tables.

[Trace another denied request](/learn/permission-denied-request-triage/).

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Trace a permission denial to the caller and the policy](/learn/permission-denied-request-triage/)
    
    Permission errors The Proofline team November 24, 2026 3 min read
    
-   ### [Verify whether a PostgreSQL role inherits a granted privilege](/learn/postgres-role-membership-noinherit/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
