Designing row-level security policies for multi-tenant SaaS and segregated data: default-deny behavior, the owner and BYPASSRLS exemptions that often leak data, FORCE ROW LEVEL SECURITY and testing policies before go-live.
Choosing range, list or hash partitioning for large tables: partition pruning, fast retention by dropping partitions, key constraints that must include the partition key, and how many partitions is too many.
Using publications and subscriptions to replicate selected tables across versions, platforms or sites, for analytics consolidation, data sharing and low-downtime migrations, and what logical replication does not carry over.
Using PostgreSQL as a document store with jsonb: json versus jsonb storage, GIN indexes and the jsonb_path_ops operator class, schema design for semi-structured data and when a separate document database still makes sense.
Building search on PostgreSQL's built-in full-text search: tsvector and tsquery, dictionaries and language configurations, GIN indexes, ranking, and the point where an external search engine is worth running.
Running background job queues in PostgreSQL instead of a separate broker: FOR UPDATE SKIP LOCKED for competing consumers, LISTEN/NOTIFY wake-ups and their payload limit, vacuum pressure on queue tables, and when to move to a message broker.
Joining data across PostgreSQL servers with the postgres_fdw foreign data wrapper: foreign servers and user mappings, remote query pushdown, security of stored credentials, and when replication is the better design.
Speeding up dashboards and reports with materialized views: how they persist query results, REFRESH and REFRESH CONCURRENTLY, scheduling refreshes, and caching data pulled through foreign data wrappers.
Writing and maintaining server-side logic in PL/pgSQL: functions versus procedures, transaction control in procedures, what converts cleanly from Oracle PL/SQL or T-SQL, testing and keeping business logic reviewable.
Choosing a tenancy model for a SaaS product on PostgreSQL: shared tables with tenant keys and row-level security, a schema per tenant with search_path, or a database per tenant, and how each affects migrations, backups and noisy neighbors.
Deciding between bigint identity columns, random UUIDv4 and time-ordered UUIDv7 keys now that PostgreSQL 18 ships uuidv7(): index locality, exposure of creation time, and migrating existing tables.