# Protecting reserved roles with PostgreSQL Hooks

DevFeed: [Protecting reserved roles with PostgreSQL Hooks](<https://devfeed.tech/articles/protecting-reserved-roles-with-postgresql-hooks-542.md>)

Original publisher: [Read original article](<https://supabase.com/blog/roles-postgres-hooks>)

Author: Steve Chavez

Published: 2021-07-02T07:00:00Z

Content type: article

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Amazon RDS](<https://devfeed.tech/topics/amazon-rds.md>), [Back end](<https://devfeed.tech/topics/backend.md>)

Tags: [amazon-rds](<https://devfeed.tech/tags/amazon-rds.md>), [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [database](<https://devfeed.tech/tags/database.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>)

## AI overview

This article explains how Supabase uses PostgreSQL Hooks in its SupaUtils extension to protect internal reserved roles while allowing customers to manage database roles. It discusses PostgreSQL and Amazon RDS reserved-role mechanisms, utility statement hooks, and custom password validation.

## Source excerpt

Using Postgres Hooks to protect functionality in your Postgres database.