Blog
PostgreSQL Types by Reference
When writing a function to work with a specific table structure, you may have to match the argument types with table columns. If a table column changes its name, you may or may not need to rework the function to apply a similar change. If the table column changes its type, you al…
Exit Codes in psql
In PostgreSQL certain commands are forbidden in transactions or functions, and lack IF NOT EXISTS variants. Examples include CREATE DATABASE and CREATE ROLE. How can one create a database idempotently? The psql documentation says this about exit codes: psql returns 0 to the shel…
Second Brain
Someone recently told me about Building a Second Brain. The book presents a “CODE” approach: Capture, Organize, Distill, Express. It reads like an update to Getting Things Done with an emphasis on more digital tooling. But the available tools are improving fast! The development o…
Separating Storage From llm Embeddings
The llm program uses sqlite to store embeddings. I want to store my embeddings in PostgreSQL. Rather than try to alter the built-in storage, I opted for the more unix-friendly approach of simply printing the results to standard output. This was fairly easy to implement based on c…
Programming Throwdown
Jason Gauci and Patrick Wheeler have an excellent podcast called Programming Throwdown. I know Jason from the Austin CTO Club. The first episode I listened to taught me about something very useful that I had been looking for, namely GraphRAG models. Check it out!