<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Postgres on Pauls Blog</title><link>https://prule.github.io/pauls-blog/tags/postgres/</link><description>Recent content in Postgres on Pauls Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 24 Nov 2026 15:00:00 +1100</lastBuildDate><atom:link href="https://prule.github.io/pauls-blog/tags/postgres/index.xml" rel="self" type="application/rss+xml"/><item><title>A Local Postgres for Coding Agents: One Role to Look, One Role to Change</title><link>https://prule.github.io/pauls-blog/post/coding/2026/postgres-for-coding-agents/</link><pubDate>Tue, 24 Nov 2026 00:00:00 +1100</pubDate><guid>https://prule.github.io/pauls-blog/post/coding/2026/postgres-for-coding-agents/</guid><description>&lt;p&gt;Agents write better database code when they can see the database. Read the actual schema instead of guessing it from entity classes. Try a query before it goes into code. Run a migration and look at the result. So I added a Postgres to my &lt;a href="https://github.com/prule/devvm" target="_blank" rel="noopener"&gt;dev VM&lt;/a&gt;&#10; that Claude Code can use while it works.&lt;/p&gt;&#10;&lt;p&gt;The catch is that &amp;ldquo;use the database&amp;rdquo; covers two very different things: looking and changing. I wanted looking to be the default and safe, and changing to be a deliberate choice. So the database has two login roles:&lt;/p&gt;</description></item><item><title>Quality Gates for AI-Generated Java and Kotlin: Beyond SonarQube</title><link>https://prule.github.io/pauls-blog/post/coding/2026/ai-code-quality-gates-java-kotlin/</link><pubDate>Sun, 15 Nov 2026 00:00:00 +1100</pubDate><guid>https://prule.github.io/pauls-blog/post/coding/2026/ai-code-quality-gates-java-kotlin/</guid><description>&lt;p&gt;SonarQube alone won&amp;rsquo;t stop an AI agent from shipping bad code. Sonar &lt;em&gt;reports&lt;/em&gt;. Agents don&amp;rsquo;t read dashboards. What works: a small set of tools that &lt;strong&gt;fail the build&lt;/strong&gt;, wired into the one command the agent already runs, with the config files locked so the agent can&amp;rsquo;t switch them off.&lt;/p&gt;&#10;&lt;p&gt;I added these gates to a small Spring Boot project that an agent had built, item by item, with three AI reviews per change. Then I seeded it with 11 typical AI mistakes. &lt;strong&gt;All 11 passed the original build. All 11 failed the new one.&lt;/strong&gt; Adding the gates also turned up a latent NPE and an untested boundary in code that had passed every review.&lt;/p&gt;</description></item></channel></rss>