Home / Companies / Hasura / Blog / Post Details
Content Deep Dive

The pros and cons of updatable views in PostgreSQL

Blog post from Hasura

Post Details
Company
Date Published
Author
Phil Freeman
Word Count
1,524
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

The text discusses the pros and cons of updatable views in PostgreSQL. Updatable views are a feature that allows users to insert or update data through a view instead of directly on the table. They were used by Hasura, an open-source engine that sits on top of Postgres, to enforce permissions for non-admin users. However, updatable views have certain limitations such as not having default column values and not supporting ON CONFLICT clauses. To address these issues, Hasura moved away from using updatable views and instead used a simpler approach involving insert CTEs and a helper function to check permissions.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
RAG 1 7 7 3 -46%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.