Skip to main content

4 posts tagged with "postgresql"

postgresql tag description

View All Tags

How to write RLS Policies to ensure users can only edit their own profile data?

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

In a traditional setup, you'd write a bunch of backend code to check if session.user.id === profile.id. In Supabase, you just tell the database the rules and let it act as the bouncer.

Row Level Security (RLS) is the engine that ensures your users can see a thousand profiles but can only click "Edit" on their own. Here is how to configure it correctly in 2026.

How to Use Check Constraints in Supabase for Data Integrity

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Data types are great, but they are often too "blunt" for real-world business logic. You might know a column is an integer, but you also need to ensure that it's never a negative number, or that a discount_price is always lower than the original_price.

In Supabase (which runs on PostgreSQL), the Check Constraint is your first line of defense for data integrity. It sits directly in the database engine, meaning no matter how a user tries to insert data (API, Dashboard, or CLI), the rule is impossible to bypass.

Supabase Pitfalls: Avoid These Common Mistakes for a Robust Backend

· 13 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Supabase Pitfalls: Avoid These Common Mistakes for a Robust Backend​

Supabase offers a powerful open-source alternative to Firebase, built around PostgreSQL. Its ease of use makes it a favorite for rapid development, but this very convenience can lead developers down paths that introduce technical debt, performance bottlenecks, and security vulnerabilities. Understanding and avoiding these common pitfalls is crucial for building a robust and scalable application.

Is Supabase Vendor Lock-in a Problem? Debunking the Myths

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Supabase has minimal vendor lock-in by design because it's built on a foundation of popular open-source technologies, most notably PostgreSQL. This is a core part of their philosophy and a key differentiator from closed-source alternatives like Firebase. However, while minimal, some "stickiness" exists in their value-added services.