---
title: "Postgres Event Triggers Are Now Supported in Neon"
description: "Neon now supports Postgres event triggers through the neon_superuser role, and they behave exactly as in vanilla Postgres."
url: "https://swe.quest/articles/postgres-event-triggers-are-now-supported-in-neon-6c294c5befac4572"
canonical: "https://neon.com/blog/postgres-event-triggers"
source: "Neon"
published: "2025-07-03"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 3
tags: ["postgres","schema-migrations"]
---

# Postgres Event Triggers Are Now Supported in Neon

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-07-03, 3 min read, Announcement. Original: [https://neon.com/blog/postgres-event-triggers](https://neon.com/blog/postgres-event-triggers)

## Summary

Neon now supports Postgres event triggers through the neon\_superuser role, and they behave exactly as in vanilla Postgres. Unlike row-level triggers, event triggers fire on DDL commands such as CREATE, ALTER and DROP. They can audit schema changes on ddl\_command\_end, automate metadata updates or alerts, and feed schema changes to sync engines like Zero via pg\_event\_trigger\_ddl\_commands(). Short examples show blocking DROP TABLE for non-admin roles and cleaning up orphaned pg\_cron jobs on sql\_drop using pg\_event\_trigger\_dropped\_objects().

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)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)

## Prerequisites

- PostgreSQL DDL ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- PL/pgSQL functions

## Keywords

Neon, Postgres event triggers, Zero, pg\_cron, pg\_event\_trigger\_ddl\_commands

## Related posts

- [Postgres as Your Platform: Building Event-Driven Systems with Schema Changes](https://swe.quest/articles/postgres-as-your-platform-building-event-driven-systems-with-schema-changes-6824bf4fc3fb4dca.md): Neon · 2025-07-25 · Medium · 7 min read · PostgreSQL, Event-driven architecture, Schema migrations, Multi-tenancy
  Postgres event triggers, transactional DDL and LISTEN/NOTIFY can turn schema changes into reliable events that drive downstream automation such as SDK generation, warehouse syncs and documentation updates, with no external queue.
- [PostgreSQL Event Triggers without superuser access](https://swe.quest/articles/postgresql-event-triggers-without-superuser-access-1e29cc1decfb7891.md): Supabase · 2025-05-08 · Hard · 3 min read · PostgreSQL, Security, Identity & auth
  Supabase's supautils extension lets non-superusers create Postgres Event Triggers by intercepting \`create event trigger\` from a "privileged role" via ProcessUtility\_hook, temporarily elevating to superuser for creation, then assigning ownership back to the privileged role.
- [When a file is uploaded, run the job on Neon](https://swe.quest/articles/when-a-file-is-uploaded-run-the-job-on-neon-11d1f9b245942444.md): Neon · 2026-09-22 · Medium · 7 min read · Serverless, Event-driven architecture, PostgreSQL, Storage systems
  Neon added a storage\_object\_created function trigger that invokes a Neon Function via HTTP POST when an object is created in a Neon Object Storage bucket, optionally filtered by key prefix.
- [Your Neon Functions can now run on a schedule](https://swe.quest/articles/your-neon-functions-can-now-run-on-a-schedule-72b4a206b2b5554b.md): Neon · 2026-09-21 · Medium · 5 min read · Serverless, PostgreSQL, Scheduling
  Neon Function Triggers let Neon invoke a deployed Node.js function on a cron schedule.
- [Just landed in the Neon CLI](https://swe.quest/articles/just-landed-in-the-neon-cli-10a12bf3c6b45d1f.md): Neon · 2026-08-25 · Medium · 6 min read · Developer tools, PostgreSQL, AI agents, Schema migrations
  The Neon CLI is renamed from neonctl to neon (old name kept as an alias) and gains a branch-first workflow built on \`neon link\`, \`neon checkout\` and \`neon env pull\`, which store project/branch context in a local .neon file and rewrite only Neon-managed env vars.

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)
