<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohei-a</author_name>
  <author_url>https://blog.hatena.ne.jp/yohei-a/</author_url>
  <blog_title>ablog</blog_title>
  <blog_url>https://yohei-a.hatenablog.jp/</blog_url>
  <categories>
    <anon>PostgreSQL</anon>
  </categories>
  <description>PostgreSQL のクエリーリライトはプラン（実行計画）を生成する前に一定のルールで書き換えられる。 http://ikubo.x0.com/PostgreSQL/pdf/IK07_postgres_041214.pdf リライタのエントリポイントは、pg_rewrite_queries() であり、クエリの木のリストをもらってクエリ木のリストを返す。pg_rewrite_queries() の中からリライトモジュールの QueryRewrite() を呼び出し、1つずつクエリ木を処理する。 PostgreSQL では、VIEW や RULE をクエリを書き換えることによって実装しています…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20180920%2F1537413485&quot; title=&quot;PostgreSQL のクエリーリライトはコストベースではなく一定のルールでリライトされる - ablog&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/y/yohei-a/20180920/20180920133847.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-20 12:18:05</published>
  <title>PostgreSQL のクエリーリライトはコストベースではなく一定のルールでリライトされる</title>
  <type>rich</type>
  <url>https://yohei-a.hatenablog.jp/entry/20180920/1537413485</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
