Backend Development16 min
Postgres Row-Level Security for Multi-Tenant Apps (2026)
Implement Postgres row-level security for multi-tenant apps with node-postgres: enable RLS, write current_setting policies, and avoid the pool-leak footgun.
Tag
15 posts
Page 1 of 2
Backend Development16 min
Implement Postgres row-level security for multi-tenant apps with node-postgres: enable RLS, write current_setting policies, and avoid the pool-leak footgun.
Backend Development11 min
Query nested relations in Drizzle ORM with db.query and the with operator: filter and limit child rows, run many-to-many joins, plus the v1 vs v2 changes.
Cloud & DevOps17 min
Deploy a Node.js app to a VPS with Kamal 2: a from-scratch Docker setup with zero-downtime deploys, automatic Let's Encrypt SSL, and a Postgres accessory.
Backend Development10 min
Use Postgres 18's built-in uuidv7() for primary keys: default DDL, uuidv7 vs uuidv4 vs bigint, migrating off uuidv4, and the timestamp-leak caveat to know.
Backend Development9 min
Should you use Postgres LISTEN/NOTIFY for a job queue? The global commit lock, 8000-byte payload cap, PgBouncer limits, and safer SKIP LOCKED patterns.
Backend Development16 min
Build fast cursor pagination on Postgres with Node.js and TypeScript: keyset queries, a compound (created_at, id) tiebreaker, and opaque base64url cursors.
Backend Development16 min
Make POST and PATCH retry-safe. Build a production idempotency-key layer in TypeScript on Node 24 with Fastify 5 and Postgres 18: atomic claims, 409s, replays.
Backend Development18 min
Send Postgres-backed pg-boss 12 jobs inside a Drizzle ORM transaction with the fromDrizzle adapter, retries, dead letters, and cron schedules.
Backend Development11 min
Tutorial: install pg_partman 5.4.3 + pg_cron on Postgres 18.4, configure daily range partitions with retention, automate maintenance, troubleshoot.
AI & Machine Learning20 min
Deploy LiteLLM Proxy v1.85 in production: Docker Compose, Postgres, virtual keys with budgets, fallback routing, and cost tracking for Claude, GPT, Gemini.
AI & Machine Learning22 min
Tune pgvector 0.8.2 HNSW indexes on PostgreSQL 18: ef_search, halfvec quantization, iterative scans, and parallel builds with a runnable Docker setup.
Backend Development16 min
Production pg-boss tutorial. Queue jobs in Postgres from Node.js 24 with TypeScript, retries, dead-letter queues, cron, and graceful shutdown.