<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>winebarrel</author_name>
  <author_url>https://blog.hatena.ne.jp/winebarrel/</author_url>
  <blog_title>so what</blog_title>
  <blog_url>https://so-wh.at/</blog_url>
  <categories>
  </categories>
  <description>psqlのpagerをteeにしておけば直前のクエリの結果がファイルに記録されるので、それをClaude Codeに食わせられるな…ということでやってみた。 $ psql -h localhost -U postgres postgres=# \setenv PSQL_PAGER 'tee query.log'; postgres=# \pset pager always postgres=# explain analyze WITH partition AS ( SELECT i.inhrelid, c.relname FROM pg_catalog.pg_inherits i JOIN p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F2026%2F02%2F21%2F231143&quot; title=&quot;psqlからClaude Codeを呼び出す - so what&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/w/winebarrel/20260221/20260221230439.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-21 23:11:43</published>
  <title>psqlからClaude Codeを呼び出す</title>
  <type>rich</type>
  <url>https://so-wh.at/entry/2026/02/21/231143</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
