---
title: "Discussion on \"Add a trigger in postgres to make a slug\" | Hashnode"
description: "Discussion on \"Add a trigger in postgres to make a slug\". How to make a function and a trigger in postgresql, the function uses the new rows id value to populate another column in the row."
url: "https://hashnode.com/posts/add-a-trigger-in-postgres/670119049e10224383bca830"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Add a trigger in postgres to make a slug](https://blog.skorpen.com/add-a-trigger-in-postgres?utm_source=hashnode&utm_medium=feed)

How to make a function and a trigger in postgresql, the function uses the new rows id value to populate another column in the row.

Oct 5, 2024 · 3 min read · blog.skorpen.com  
Read the article

-   [#sql](https://hashnode.com/tag/sql)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#supabase](https://hashnode.com/tag/supabase)
-   [#trigger](https://hashnode.com/tag/trigger)

## Written by

[Stefan Skorpen](https://hashnode.com/@skorpio)

@skorpio · Norway

  
[View profile](https://hashnode.com/@skorpio)

Fullstack developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
